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

Commit e5c7f098 authored by Eric Fischer's avatar Eric Fischer Committed by Jean-Baptiste Queru
Browse files

Add check for null contact name when setting up dictionary.

Bug 2021966
parent 2bed1531
Loading
Loading
Loading
Loading
+20 −17
Original line number Diff line number Diff line
@@ -90,6 +90,8 @@ public class ContactsDictionary extends ExpandableDictionary {
        if (cursor.moveToFirst()) {
            while (!cursor.isAfterLast()) {
                String name = cursor.getString(INDEX_NAME);

                if (name != null) {
                    int len = name.length();

                    // TODO: Better tokenization for non-Latin writing systems
@@ -115,6 +117,7 @@ public class ContactsDictionary extends ExpandableDictionary {
                            }
                        }
                    }
                }

                cursor.moveToNext();
            }