Fix NPE in AdditionalSubtypeSettings

Bug: 6384416
Change-Id: I878071b8b78acce51649f9637b59830ab681c696
main
Tadashi G. Takaoka 2012-04-24 11:01:45 +09:00
parent fa1affbaec
commit 3e3bb36f1f
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ public class AdditionalSubtypeSettings extends PreferenceFragment {
final Preference pref = mSubtypePrefGroup.getPreference(i);
if (pref instanceof SubtypePreference) {
final InputMethodSubtype subtype = ((SubtypePreference)pref).getSubtype();
if (subtype == null) continue;
if (sb.length() > 0) {
sb.append(AdditionalSubtype.PREF_SUBTYPE_SEPARATOR);
}