Fixed crash if contact doesn't have a display name
This commit is contained in:
parent
b1336464ad
commit
88befd40ac
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…
Reference in a new issue