another bugfix
[org.ibex.util.git] / src / org / ibex / util / GetDep.java
index 9e0e67a..135dd8b 100644 (file)
@@ -44,7 +44,7 @@ public final class GetDep {
                     if (ze == null) break;
                     if (ze.getName().equals(path)) return zis;
                 }
-                return null;
+                throw new RuntimeException("could not find file within archive");
             } else {
                 Tar.TarInputStream tis = new Tar.TarInputStream(new GZIPInputStream(rest));
                 while(true) {
@@ -52,7 +52,7 @@ public final class GetDep {
                     if (te == null) break;
                     if (te.getName().equals(path)) return tis;
                 }
-                return null;
+                throw new RuntimeException("could not find file within archive");
             }
         } else {
             URL u = new URL(url);