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

Commit 3a1e496e authored by Danny Baumann's avatar Danny Baumann
Browse files

Fix NullPointerException on locale change.

Change-Id: Ib6f33c324164b4fda59a3cd3d7f00da82396e04d
parent 45ed3142
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -139,9 +139,11 @@ public class T9SearchCache implements ComponentCallbacks2 {
            NameToNumber normalizer = NameToNumberFactory.create(mContext, mT9Chars, mT9Digits);
            for (ContactItem contact : mContacts) {
                for (NameMatchEntry entry : contact.nameEntries.values()) {
                    if (entry.value != null) {
                        entry.normalValue = normalizer.convert(entry.value);
                    }
                }
            }
            notifyLoadFinished();
        }
    };