Fix NPE when loading locale file - closes #338

This commit is contained in:
Luck 2017-06-24 17:26:52 +01:00
parent 2ffbeeef8e
commit 1b199fd2c7
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -80,7 +80,7 @@ public class SimpleLocaleManager implements LocaleManager {
String description = (String) attributes.get("description"); String description = (String) attributes.get("description");
String usage = (String) attributes.get("usage"); String usage = (String) attributes.get("usage");
Map<String, String> args = (Map<String, String>) attributes.get("args"); Map<String, String> args = (Map<String, String>) attributes.get("args");
if (args.isEmpty()) { if (args != null && args.isEmpty()) {
args = null; args = null;
} }