Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a500bba8 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in AdditionalSubtypeSettings"

parents 554b8584 3e3bb36f
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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);
                }
                }