Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33a1f51c authored by Neel Parekh's avatar Neel Parekh
Browse files

Make sure we don't get an Out of bounds exception when getting a section.

parent a6ff67e8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2604,6 +2604,10 @@ public final class ContactsListActivity extends ListActivity implements
                return -1;
            }

            if (sectionIndex < 0 || sectionIndex >= mSectionPositions.length) {
                return -1;
            }

            if (mIndexer == null) {
                Cursor cursor = mAdapter.getCursor();
                if (cursor == null) {