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=86f24e99107771ad1225bfd4fdece295f2b86d57;p=fanfix-swing.git fix json excetpion not ioexception --- diff --git a/src/be/nikiroo/fanfix/supported/BasicSupport.java b/src/be/nikiroo/fanfix/supported/BasicSupport.java index f1635589..56a3bb80 100644 --- a/src/be/nikiroo/fanfix/supported/BasicSupport.java +++ b/src/be/nikiroo/fanfix/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(); }