mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-06 19:09:31 +01:00
Fix NPE when loading locale file - closes #338
This commit is contained in:
parent
2ffbeeef8e
commit
1b199fd2c7
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user