mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 08:47:46 +00:00
fix crash on android contact weirdness
Fixes #2722 Closes #2758 // FREEBIE
This commit is contained in:
parent
b21369b7bc
commit
9a2c372c23
@ -141,7 +141,7 @@ public class ContactsDatabase {
|
|||||||
baseUri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;
|
baseUri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI;
|
||||||
}
|
}
|
||||||
Cursor cursor = context.getContentResolver().query(baseUri, ANDROID_PROJECTION, null, null, CONTACT_LIST_SORT);
|
Cursor cursor = context.getContentResolver().query(baseUri, ANDROID_PROJECTION, null, null, CONTACT_LIST_SORT);
|
||||||
return new TypedCursorWrapper(cursor);
|
return cursor == null ? null : new TypedCursorWrapper(cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Cursor queryLocalDb(String filter) {
|
private Cursor queryLocalDb(String filter) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user