mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-07 01:23:38 +02:00
Prevent NPE
This commit is contained in:
@@ -1142,7 +1142,7 @@ public class MessageHelper {
|
||||
ContactsContract.Contacts._ID,
|
||||
ContactsContract.Contacts.DISPLAY_NAME_PRIMARY,
|
||||
}, null, null, null)) {
|
||||
if (cursor.moveToFirst()) {
|
||||
if (cursor != null && cursor.moveToFirst()) {
|
||||
String contactId = cursor.getString(0);
|
||||
String display = cursor.getString(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user