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

* commit 'a4944dffa9a0476c61f6a1f194e2bf025071e6a6':
  Fix NPE in Key.isDigitPopupCharacter (DO NOT MERGE)
This commit is contained in:
Tadashi G. Takaoka 2011-05-18 23:46:23 -07:00 committed by Android Git Automerger
commit 1f1638d62b

View file

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