}
}
- if (offline) {
+ String protocol = originalUrl == null ? null : originalUrl
+ .getProtocol();
+ if (isOffline() && !"file".equalsIgnoreCase(protocol)) {
tracer.error("Downloader OFFLINE, cannot proceed to URL: " + url);
throw new IOException("Downloader is currently OFFLINE, cannot download: " + url);
}
}
}
+ if (in == null) {
+ throw new IOException(
+ "Cannot retrieve the file after storing it in the cache (??)");
+ }
+
return in;
} catch (IOException e) {
throw new IOException(String.format(