cache save/load workflow
[fanfix.git] / src / be / nikiroo / utils / Downloader.java
index b1ac56c0508300e6fee02eada0affd499117b7a8..c9a319aa0eb725159287562ae76718fc531c8097 100644 (file)
@@ -397,6 +397,11 @@ public class Downloader {
                                }
                        }
 
+                       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(