am b3c51630: Fix: NPE in LatinIME.loadSettnigs().

* commit 'b3c51630a6b8dc09c161c7720db7bae21b0cf27e':
  Fix: NPE in LatinIME.loadSettnigs().
main
Keisuke Kuroyanagi 2014-01-07 19:57:02 -08:00 committed by Android Git Automerger
commit c382d0f114
1 changed files with 4 additions and 2 deletions

View File

@ -524,8 +524,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
if (currentSettingsValues.mUsePersonalizedDicts) {
if (mSubtypeSwitcher.isSystemLocaleSameAsLocaleOfAllEnabledSubtypes()) {
PersonalizationDictionarySessionRegistrar.init(this,
mInputLogic.mSuggest.mDictionaryFacilitator);
final DictionaryFacilitatorForSuggest dictionaryFacilitator =
(mInputLogic.mSuggest == null) ?
null : mInputLogic.mSuggest.mDictionaryFacilitator;
PersonalizationDictionarySessionRegistrar.init(this, dictionaryFacilitator);
} else {
PersonalizationDictionarySessionRegistrar.close(this);
}