1
0
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:
Loic Blot
2015-08-30 10:05:46 +02:00
parent b937c4ebdd
commit f7dcb8e51c
4 changed files with 49 additions and 1 deletions
@@ -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) {