mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-23 14:48:16 +00:00
Fixed crash if contact doesn't have a display name
This commit is contained in:
parent
63e1d9fd9d
commit
5a887c8425
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ class NativeContact(val nativeId: String, private val lookupKey: String? = null)
|
|||
|
||||
@Synchronized
|
||||
override fun syncValuesFromAndroidCursor(cursor: Cursor) {
|
||||
val displayName: String =
|
||||
val displayName: String? =
|
||||
cursor.getString(cursor.getColumnIndex(ContactsContract.Data.DISPLAY_NAME_PRIMARY))
|
||||
|
||||
val mime: String? = cursor.getString(cursor.getColumnIndex(ContactsContract.Data.MIMETYPE))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue