Merge "Fix NPE in AdditionalSubtypeSettings"

main
Tadashi G. Takaoka 2012-04-23 20:25:14 -07:00 committed by Android (Google) Code Review
commit a500bba8ed
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);
}