Skip to content
Snippets Groups Projects
Commit b3c51630 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix: NPE in LatinIME.loadSettnigs().

Change-Id: Icae6c74401a7a8f4da6015737f09f557640c0cca
parent 38503155
No related branches found
No related tags found
No related merge requests found
...@@ -524,8 +524,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen ...@@ -524,8 +524,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
} }
if (currentSettingsValues.mUsePersonalizedDicts) { if (currentSettingsValues.mUsePersonalizedDicts) {
if (mSubtypeSwitcher.isSystemLocaleSameAsLocaleOfAllEnabledSubtypes()) { if (mSubtypeSwitcher.isSystemLocaleSameAsLocaleOfAllEnabledSubtypes()) {
PersonalizationDictionarySessionRegistrar.init(this, final DictionaryFacilitatorForSuggest dictionaryFacilitator =
mInputLogic.mSuggest.mDictionaryFacilitator); (mInputLogic.mSuggest == null) ?
null : mInputLogic.mSuggest.mDictionaryFacilitator;
PersonalizationDictionarySessionRegistrar.init(this, dictionaryFacilitator);
} else { } else {
PersonalizationDictionarySessionRegistrar.close(this); PersonalizationDictionarySessionRegistrar.close(this);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment