Skip to content
Snippets Groups Projects
Commit 7b516d49 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix: NPE in isValidWord after dictionaries are closed.

Bug: 13650542
Change-Id: I1bdc838fca48d6ef12db5e70d40273d1236128d1
parent eddbb7ac
No related branches found
No related tags found
No related merge requests found
......@@ -480,6 +480,9 @@ public class DictionaryFacilitatorForSuggest {
return false;
}
final Dictionaries dictionaries = mDictionaries;
if (dictionaries.mLocale == null) {
return false;
}
final String lowerCasedWord = word.toLowerCase(dictionaries.mLocale);
final Map<String, Dictionary> dictMap = dictionaries.mDictMap;
for (final Dictionary dictionary : dictMap.values()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment