From 8831d290121e3a77f535ce06d61968a26ccf172a Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 6 May 2020 17:24:48 +0200 Subject: [PATCH] fix json excetpion not ioexception --- supported/BasicSupport.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/supported/BasicSupport.java b/supported/BasicSupport.java index f163558..56a3bb8 100644 --- a/supported/BasicSupport.java +++ b/supported/BasicSupport.java @@ -12,6 +12,7 @@ import java.util.Map; import java.util.Scanner; import java.util.Map.Entry; +import org.json.JSONException; import org.json.JSONObject; import org.jsoup.helper.DataUtil; import org.jsoup.nodes.Document; @@ -347,6 +348,8 @@ public abstract class BasicSupport { scan.useDelimiter("\0"); try { return new JSONObject(scan.next()); + } catch (JSONException e) { + throw new IOException(e); } finally { scan.close(); } -- 2.27.0