am a4944dff: Fix NPE in Key.isDigitPopupCharacter (DO NOT MERGE)

* commit 'a4944dffa9a0476c61f6a1f194e2bf025071e6a6':
  Fix NPE in Key.isDigitPopupCharacter (DO NOT MERGE)
main
Tadashi G. Takaoka 2011-05-18 23:46:23 -07:00 committed by Android Git Automerger
commit 1f1638d62b
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,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) {