From 67a884f03c9e365e9ee09bba2beee1bb65505a66 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Wed, 10 Aug 2016 06:34:31 +0800 Subject: [PATCH] Throw IOException if server sends bad response data --- source/net/filebot/CachedResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/CachedResource.java b/source/net/filebot/CachedResource.java index 4a3dcfa5..f5c1439e 100644 --- a/source/net/filebot/CachedResource.java +++ b/source/net/filebot/CachedResource.java @@ -89,7 +89,7 @@ public class CachedResource implements Resource { } if (data == null) { - throw new IllegalStateException(String.format("Response data is null: %s => %s", key, url)); + throw new IOException(String.format("Response data is null: %s => %s", key, url)); } return parse.transform(data);