From 6d90352b6f54390c9a18f71003289267e62689a5 Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Wed, 8 Feb 2023 13:59:03 +0800 Subject: [PATCH] prune CMHttpServer --- src/main/java/org/bdware/server/CMHttpServer.java | 3 +++ 1 file changed, 3 insertions(+) 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())