Correction d'un autre NullPointerException dans le chargement de la config
This commit is contained in:
parent
e310b28ed3
commit
0c3ca5087a
@ -13,7 +13,9 @@ public class CommandAliasConfigEntry {
|
|||||||
|
|
||||||
public CommandAliasConfigEntry(String init, String repl, String perms) {
|
public CommandAliasConfigEntry(String init, String repl, String perms) {
|
||||||
|
|
||||||
permissions = Collections.unmodifiableList(ConfigManager.splitPermissionsString(perms));
|
List<String> permsList = ConfigManager.splitPermissionsString(perms);
|
||||||
|
|
||||||
|
permissions = (permsList == null) ? null : Collections.unmodifiableList(permsList);
|
||||||
|
|
||||||
if (init == null || init.trim().equals(""))
|
if (init == null || init.trim().equals(""))
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
|
Loading…
Reference in New Issue
Block a user