Fixed JSONERROR handling

This commit is contained in:
Norbi Peti 2016-08-17 15:35:14 +02:00
parent 660e49a9f6
commit 437be79d69

View file

@ -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;