Skip to content
Snippets Groups Projects
Commit 3e3bb36f authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix NPE in AdditionalSubtypeSettings

Bug: 6384416
Change-Id: I878071b8b78acce51649f9637b59830ab681c696
parent fa1affba
No related branches found
No related tags found
No related merge requests found
...@@ -366,6 +366,7 @@ public class AdditionalSubtypeSettings extends PreferenceFragment { ...@@ -366,6 +366,7 @@ public class AdditionalSubtypeSettings extends PreferenceFragment {
final Preference pref = mSubtypePrefGroup.getPreference(i); final Preference pref = mSubtypePrefGroup.getPreference(i);
if (pref instanceof SubtypePreference) { if (pref instanceof SubtypePreference) {
final InputMethodSubtype subtype = ((SubtypePreference)pref).getSubtype(); final InputMethodSubtype subtype = ((SubtypePreference)pref).getSubtype();
if (subtype == null) continue;
if (sb.length() > 0) { if (sb.length() > 0) {
sb.append(AdditionalSubtype.PREF_SUBTYPE_SEPARATOR); sb.append(AdditionalSubtype.PREF_SUBTYPE_SEPARATOR);
} }
......
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