From: Niki Roo Date: Wed, 6 May 2020 15:24:48 +0000 (+0200) Subject: fix json excetpion not ioexception X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=8831d290121e3a77f535ce06d61968a26ccf172a;p=nikiroo-utils.git fix json excetpion not ioexception --- 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(); }