mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-25 01:06:04 +00:00
Prevent NPE
This commit is contained in:
parent
22762e6c64
commit
6c835d8ab1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue