diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 291ed6d07..b7f035747 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -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); }