Prevent NPE

master
M66B 2 months ago
parent 6c835d8ab1
commit 17de79d52e

@ -1695,7 +1695,7 @@ public class FragmentIdentity extends FragmentBase {
ContactsContract.Contacts.DISPLAY_NAME_PRIMARY ContactsContract.Contacts.DISPLAY_NAME_PRIMARY
}, },
null, null, null)) { null, null, null)) {
if (cursor.moveToNext()) if (cursor != null && cursor.moveToNext())
return cursor.getString(0); return cursor.getString(0);
} }
} catch (Throwable ex) { } catch (Throwable ex) {

Loading…
Cancel
Save