Fix NPE in Key.isDigitPopupCharacter

Change-Id: Ie6e8d31e41010db27e2db415b577458b73a9f1a2
This commit is contained in:
Tadashi G. Takaoka 2011-05-19 14:32:33 +09:00
parent 0e8bbe3ab4
commit 96f185d8af

View file

@ -275,7 +275,7 @@ public class Key {
}
private static boolean isDigitPopupCharacter(CharSequence label) {
return label.length() == 1 && Character.isDigit(label.charAt(0));
return label != null && label.length() == 1 && Character.isDigit(label.charAt(0));
}
private static CharSequence[] filterOutDigitPopupCharacters(CharSequence[] popupCharacters) {