am 3c38e1f2: Merge "Fix: NPE in isValidWord after dictionaries are closed."

* commit '3c38e1f269ad34a663db672e5cfb291fb1931987':
  Fix: NPE in isValidWord after dictionaries are closed.
main
Keisuke Kuroyanagi 2014-03-27 03:16:40 +00:00 committed by Android Git Automerger
commit 79fccd5432
1 changed files with 3 additions and 0 deletions

View File

@ -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()) {