mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-08-31 00:20:34 +02: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