am 3c38e1f2: Merge "Fix: NPE in isValidWord after dictionaries are closed."
* commit '3c38e1f269ad34a663db672e5cfb291fb1931987': Fix: NPE in isValidWord after dictionaries are closed.main
commit
79fccd5432
|
@ -480,6 +480,9 @@ public class DictionaryFacilitatorForSuggest {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
final Dictionaries dictionaries = mDictionaries;
|
final Dictionaries dictionaries = mDictionaries;
|
||||||
|
if (dictionaries.mLocale == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
final String lowerCasedWord = word.toLowerCase(dictionaries.mLocale);
|
final String lowerCasedWord = word.toLowerCase(dictionaries.mLocale);
|
||||||
final Map<String, Dictionary> dictMap = dictionaries.mDictMap;
|
final Map<String, Dictionary> dictMap = dictionaries.mDictMap;
|
||||||
for (final Dictionary dictionary : dictMap.values()) {
|
for (final Dictionary dictionary : dictMap.values()) {
|
||||||
|
|
Loading…
Reference in New Issue