From a43430b722126b97ea0d00064be10760e0fc513f Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Wed, 13 Jul 2016 00:14:26 +1000 Subject: [PATCH] Fix NPE for null arg --- Core/src/main/java/com/intellectualcrafters/plot/config/C.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/config/C.java b/Core/src/main/java/com/intellectualcrafters/plot/config/C.java index 978950114..2b5546809 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/config/C.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/config/C.java @@ -670,7 +670,7 @@ public enum C { Map map = new LinkedHashMap<>(); if (args.length > 0) { for (int i = args.length - 1; i >= 0; i--) { - String arg = args[i].toString(); + String arg = "" + args[i]; if (arg == null || arg.isEmpty()) { map.put("%s" + i, ""); } else {