Fix potential NPE
This commit is contained in:
@@ -180,7 +180,7 @@ public class ContactHelper {
|
|||||||
ContactsContract.Contacts.Data.IS_PRIMARY + " DESC"
|
ContactsContract.Contacts.Data.IS_PRIMARY + " DESC"
|
||||||
);
|
);
|
||||||
if (profileCursor == null) {
|
if (profileCursor == null) {
|
||||||
return null;
|
return new HashSet<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<String> emails = new HashSet<>();
|
Set<String> emails = new HashSet<>();
|
||||||
@@ -210,7 +210,7 @@ public class ContactHelper {
|
|||||||
},
|
},
|
||||||
null, null, null);
|
null, null, null);
|
||||||
if (profileCursor == null) {
|
if (profileCursor == null) {
|
||||||
return null;
|
return new ArrayList<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
Set<String> names = new HashSet<>();
|
Set<String> names = new HashSet<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user