1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 09:17:58 +00:00

Prevent NPE

This commit is contained in:
M66B 2024-09-26 07:29:46 +02:00
parent 22762e6c64
commit 6c835d8ab1

View file

@ -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);