mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-10-31 07:51:05 +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 usage = (String) attributes.get("usage");
|
||||
Map<String, String> args = (Map<String, String>) attributes.get("args");
|
||||
if (args.isEmpty()) {
|
||||
if (args != null && args.isEmpty()) {
|
||||
args = null;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user