Fix NPE in Key.isDigitPopupCharacter
Change-Id: Ie6e8d31e41010db27e2db415b577458b73a9f1a2
This commit is contained in:
parent
0e8bbe3ab4
commit
96f185d8af
1 changed files with 1 additions and 1 deletions
|
@ -275,7 +275,7 @@ public class Key {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isDigitPopupCharacter(CharSequence label) {
|
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) {
|
private static CharSequence[] filterOutDigitPopupCharacters(CharSequence[] popupCharacters) {
|
||||||
|
|
Loading…
Reference in a new issue