diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java index 611da4f..31c6879 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java +++ b/src/com/android/settings/inputmethod/InputMethodAndLanguageSettings.java @@ -108,7 +108,7 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment final int columnIndex = locales.getColumnIndex(UserDictionary.Words.LOCALE); do { final String locale = locales.getString(columnIndex); - if (!prefs.containsKey(locale)) + if (locale != null && !prefs.containsKey(locale)) prefs.put(locale, createUserDictionaryPreference(locale, activity, ++order)); } while (locales.moveToNext()); } |