From 0c3ca5087a7eee9c6fa4421346f3043fb1117a9c Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 22 Feb 2015 00:09:10 -0500 Subject: [PATCH] Correction d'un autre NullPointerException dans le chargement de la config --- .../config/elements/CommandAliasConfigEntry.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java b/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java index 4c63a6c..d2c020e 100644 --- a/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java +++ b/src/net/mc_pandacraft/java/plugin/pandacraftutils/config/elements/CommandAliasConfigEntry.java @@ -13,7 +13,9 @@ public class CommandAliasConfigEntry { public CommandAliasConfigEntry(String init, String repl, String perms) { - permissions = Collections.unmodifiableList(ConfigManager.splitPermissionsString(perms)); + List permsList = ConfigManager.splitPermissionsString(perms); + + permissions = (permsList == null) ? null : Collections.unmodifiableList(permsList); if (init == null || init.trim().equals("")) throw new IllegalArgumentException();