From 5717c63a2b3876716986b24c86cc6c564c38e720 Mon Sep 17 00:00:00 2001 From: Keisuke Kuroyanagi Date: Fri, 10 Jan 2014 21:42:08 +0900 Subject: [PATCH] Fix possible NPE in DictionaryFacilitatorForSuggest. Change-Id: I57792b7417b5f1acbb99e6ea60250eb44b193785 --- .../inputmethod/latin/DictionaryFacilitatorForSuggest.java | 1 + 1 file changed, 1 insertion(+) 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)); }