diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/cyanogenmod/eleven/locale/LocaleUtils.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/cyanogenmod/eleven/locale/LocaleUtils.java b/src/com/cyanogenmod/eleven/locale/LocaleUtils.java index f16a17a..4381f71 100644 --- a/src/com/cyanogenmod/eleven/locale/LocaleUtils.java +++ b/src/com/cyanogenmod/eleven/locale/LocaleUtils.java @@ -127,6 +127,9 @@ public class LocaleUtils { * for the new # bucket, so the returned range becomes 0 to N+1. */ public int getBucketIndex(String name) { + if (name == null) { + return -1; + } boolean prefixIsNumeric = false; final int length = name.length(); int offset = 0; |