Prevent NPE

master
M66B 1 month ago
parent 6c835d8ab1
commit 17de79d52e

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

Loading…
Cancel
Save