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