diff --git a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java index a4d48e1c40..b8199f545d 100644 --- a/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java +++ b/src/org/thoughtcrime/securesms/contacts/ContactsDatabase.java @@ -141,7 +141,7 @@ public class ContactsDatabase { baseUri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI; } 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) {