am 5717c63a: Fix possible NPE in DictionaryFacilitatorForSuggest.

* commit '5717c63a2b3876716986b24c86cc6c564c38e720':
  Fix possible NPE in DictionaryFacilitatorForSuggest.
main
Keisuke Kuroyanagi 2014-01-10 04:50:25 -08:00 committed by Android Git Automerger
commit c548b35b6a
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ public class DictionaryFacilitatorForSuggest {
final int sessionId, final Set<SuggestedWordInfo> 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));
}