diff --git a/source/net/filebot/CachedResource.java b/source/net/filebot/CachedResource.java index 1777eac1..dba1c63b 100644 --- a/source/net/filebot/CachedResource.java +++ b/source/net/filebot/CachedResource.java @@ -85,6 +85,10 @@ public class CachedResource implements Resource { return element.getObjectValue(); } + if (data == null) { + throw new IllegalStateException(String.format("Response data is null: %s => %s", key, url)); + } + return parse.transform(data); } catch (IOException e) { debug.warning(format("Fetch failed: %s", e.getMessage()));