Skip to content

Commit

Permalink
Fixes range lint error for getColumnIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer committed Feb 1, 2022
1 parent c1a89c3 commit f862146
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private ArrayList<String> getListOfContacts() {

if (cur != null && cur.getCount() > 0) {
while (cur.moveToNext()) {
String name = cur.getString(cur.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
String name = cur.getString(cur.getColumnIndexOrThrow(ContactsContract.Contacts.DISPLAY_NAME));
contactsList.add(name);
}
}
Expand Down

0 comments on commit f862146

Please sign in to comment.