diff --git a/src/io/github/norbipeti/chat/server/io/IOHelper.java b/src/io/github/norbipeti/chat/server/io/IOHelper.java index 2537993..3f5726c 100644 --- a/src/io/github/norbipeti/chat/server/io/IOHelper.java +++ b/src/io/github/norbipeti/chat/server/io/IOHelper.java @@ -101,6 +101,8 @@ public class IOHelper { public static JsonObject GetPOSTJSON(HttpExchange exchange) { try { String content = GetPOST(exchange); + if (content.length() == 0) + return null; JsonElement e = new JsonParser().parse(content); if (e == null) return null;