mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2026-08-24 06:43:07 +00:00
Read phone contact list to retrieve contacts from phone numbers
* ContactListAdapter: Fix a potential crash when list is empty
This commit is contained in:
@@ -32,6 +32,10 @@ public class ContactListAdapter extends ArrayAdapter<String> {
|
||||
v = inflater.inflate(_itemLayout, null);
|
||||
}
|
||||
|
||||
if (_objects.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final String element = _objects.get(position);
|
||||
|
||||
if (element != null) {
|
||||
|
||||
Reference in New Issue
Block a user