mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
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:
commit
1f1638d62b
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user