Skip to content

Commit 39e3203

Browse files
authored
fix: quick fix out of bounds exception (#588)
1 parent b6f39da commit 39e3203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/org/fossify/messages/helpers/ShortcutHelper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ShortcutHelper(private val context: Context) {
6565
setPersons(persons)
6666
setIntent(intent)
6767
setRank(1)
68-
if (!conv.isGroupConversation && !conv.usesCustomTitle) {
68+
if (!conv.isGroupConversation && !conv.usesCustomTitle && persons.isNotEmpty()) {
6969
setIcon(persons[0].icon)
7070
} else {
7171
val icon = if (conv.isGroupConversation) {

0 commit comments

Comments
 (0)