From 1a23315ddf494052e91b8da358ab3bef63bc8abd Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 12 Jan 2023 22:30:47 +0100 Subject: [PATCH] adding a crashfix --- .../simplemobiletools/contacts/pro/helpers/ContactsHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt index acdc6134..c619bd97 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/helpers/ContactsHelper.kt @@ -740,7 +740,7 @@ class ContactsHelper(val context: Context) { } val nickname = getNicknames(id)[id] ?: "" - val photoUri = cursor.getStringValue(Phone.PHOTO_URI) ?: "" + val photoUri = cursor.getStringValueOrNull(Phone.PHOTO_URI) ?: "" val number = getPhoneNumbers(id)[id] ?: ArrayList() val emails = getEmails(id)[id] ?: ArrayList() val addresses = getAddresses(id)[id] ?: ArrayList()