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

Commit 10f1a4d3 authored by Jeff Hamilton's avatar Jeff Hamilton
Browse files

Don't crash if the contacts provider returns a null Cursor.

parent 9a66cd81
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -67,7 +67,9 @@ public class ContactsDictionary extends ExpandableDictionary {
    private synchronized void loadDictionary() {
        Cursor cursor = getContext().getContentResolver()
                .query(People.CONTENT_URI, PROJECTION, null, null, null);
        if (cursor != null) {
            addWords(cursor);
        }
        mRequiresReload = false;
    }