aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
index 0960c1a..104bf09 100644
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -462,7 +462,14 @@ public class JNLPClassLoader extends URLClassLoader {
for (JARDesc jarDesc: file.getResources().getJARs()) {
try {
- URL location = tracker.getCacheFile(jarDesc.getLocation()).toURL();
+ File cachedFile = tracker.getCacheFile(jarDesc.getLocation());
+
+ if (cachedFile == null) {
+ System.err.println("JAR " + jarDesc.getLocation() + " not found. Continuing.");
+ continue; // JAR not found. Keep going.
+ }
+
+ URL location = cachedFile.toURL();
SecurityDesc jarSecurity = file.getSecurity();
if (file instanceof PluginBridge) {