Merge "Fix: NPE in isValidWord after dictionaries are closed."
This commit is contained in:
commit
3c38e1f269
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue