Fix NPE in AdditionalSubtypeSettings
Bug: 6384416 Change-Id: I878071b8b78acce51649f9637b59830ab681c696
This commit is contained in:
parent
fa1affbaec
commit
3e3bb36f1f
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue