Merge "Fix NPE in AdditionalSubtypeSettings"
This commit is contained in:
commit
a500bba8ed
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