diff --git a/src/com/android/settings/inputmethod/InputMethodAndSubtypeUtil.java b/src/com/android/settings/inputmethod/InputMethodAndSubtypeUtil.java index 460bc9c437e..69819273e88 100644 --- a/src/com/android/settings/inputmethod/InputMethodAndSubtypeUtil.java +++ b/src/com/android/settings/inputmethod/InputMethodAndSubtypeUtil.java @@ -138,6 +138,9 @@ public class InputMethodAndSubtypeUtil { HashSet set = new HashSet(); String disabledIMEsStr = Settings.Secure.getString( resolver, Settings.Secure.DISABLED_SYSTEM_INPUT_METHODS); + if (TextUtils.isEmpty(disabledIMEsStr)) { + return set; + } sStringInputMethodSplitter.setString(disabledIMEsStr); while(sStringInputMethodSplitter.hasNext()) { set.add(sStringInputMethodSplitter.next());