diff --git a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java index aa8bb2ccb..f733a9a6b 100644 --- a/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java +++ b/java/src/com/android/inputmethod/latin/DictionaryFacilitatorForSuggest.java @@ -410,6 +410,7 @@ public class DictionaryFacilitatorForSuggest { final int sessionId, final Set suggestionSet) { for (final String key : mDictionaries.keySet()) { final Dictionary dictionary = mDictionaries.get(key); + if (null == dictionary) continue; suggestionSet.addAll(dictionary.getSuggestionsWithSessionId(composer, prevWord, proximityInfo, blockOffensiveWords, additionalFeaturesOptions, sessionId)); }