Correction d'un autre NullPointerException dans le chargement de la config

This commit is contained in:
Marc Baloup 2015-02-22 00:09:10 -05:00
parent e310b28ed3
commit 0c3ca5087a

View File

@ -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();