Throw IOException if server sends bad response data

This commit is contained in:
Reinhard Pointner 2016-08-10 06:34:31 +08:00
parent 7dd1898761
commit 67a884f03c
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class CachedResource<K, R> implements Resource<R> {
}
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);