/hg/icedtea-web: Fixed PR542
dbhole at icedtea.classpath.org
dbhole at icedtea.classpath.org
Mon Nov 1 08:41:44 PDT 2010
changeset df3cf32781d3 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=df3cf32781d3
author: Deepak Bhole <dbhole at redhat.com>
date: Mon Nov 01 11:41:59 2010 -0700
Fixed PR542
Plugin fails with NPE on
http://www.openprocessing.org/visuals/iframe.php?visualID=2615
diffstat:
3 files changed, 18 insertions(+), 1 deletion(-)
ChangeLog | 9 +++++++++
NEWS | 1 +
netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 9 ++++++++-
diffs (43 lines):
diff -r bdab3d4ac170 -r df3cf32781d3 ChangeLog
--- a/ChangeLog Mon Nov 01 10:51:43 2010 -0700
+++ b/ChangeLog Mon Nov 01 11:41:59 2010 -0700
@@ -1,3 +1,12 @@ 2010-11-01 Deepak Bhole <dbhole at redhat.
+2010-11-01 Deepak Bhole <dbhole at redhat.com>
+
+ PR542: Plugin fails with NPE on
+ http://www.openprocessing.org/visuals/iframe.php?visualID=2615
+ * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+ (initializeResources): If cacheFile is null (JAR couldn't be downloaded),
+ try to continue, rather than allowing the exception to cause an abort.
+ * NEWS: Updated.
+
2010-11-01 Deepak Bhole <dbhole at redhat.com>
* plugin/docs: Added new docs folder that contains plugin documentation.
diff -r bdab3d4ac170 -r df3cf32781d3 NEWS
--- a/NEWS Mon Nov 01 10:51:43 2010 -0700
+++ b/NEWS Mon Nov 01 11:41:59 2010 -0700
@@ -11,3 +11,4 @@ New in release 1.0 (2010-XX-XX):
New in release 1.0 (2010-XX-XX):
* Initial release of IcedTea-Web
+* PR542: Plugin fails with NPE on http://www.openprocessing.org/visuals/iframe.php?visualID=2615
diff -r bdab3d4ac170 -r df3cf32781d3 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Nov 01 10:51:43 2010 -0700
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Nov 01 11:41:59 2010 -0700
@@ -462,7 +462,14 @@ public class JNLPClassLoader extends URL
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) {
More information about the distro-pkg-dev
mailing list