diff --git a/src/main/java/org/bdware/server/CMHttpServer.java b/src/main/java/org/bdware/server/CMHttpServer.java index 4258777..403b896 100644 --- a/src/main/java/org/bdware/server/CMHttpServer.java +++ b/src/main/java/org/bdware/server/CMHttpServer.java @@ -161,6 +161,9 @@ public class CMHttpServer { try { for (JsonElement je : cmdConf.startContract) { JsonObject jo = je.getAsJsonObject(); + if (!jo.has("path")) + continue; + String path = jo.get("path").getAsString(); File f = new File(path); if (!f.getName().endsWith(".ypk") || !f.exists())