From 39e320366e4af8b85303a392a5a78449253e4135 Mon Sep 17 00:00:00 2001 From: Naveen Singh <36371707+naveensingh@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:57:55 +0530 Subject: [PATCH] fix: quick fix out of bounds exception (#588) --- .../main/kotlin/org/fossify/messages/helpers/ShortcutHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/fossify/messages/helpers/ShortcutHelper.kt b/app/src/main/kotlin/org/fossify/messages/helpers/ShortcutHelper.kt index f8c9f681..afc06729 100644 --- a/app/src/main/kotlin/org/fossify/messages/helpers/ShortcutHelper.kt +++ b/app/src/main/kotlin/org/fossify/messages/helpers/ShortcutHelper.kt @@ -65,7 +65,7 @@ class ShortcutHelper(private val context: Context) { setPersons(persons) setIntent(intent) setRank(1) - if (!conv.isGroupConversation && !conv.usesCustomTitle) { + if (!conv.isGroupConversation && !conv.usesCustomTitle && persons.isNotEmpty()) { setIcon(persons[0].icon) } else { val icon = if (conv.isGroupConversation) {