openjdk team mailing list archive
-
openjdk team
-
Mailing list archive
-
Message #08920
Bug#605458: [icedtea6-plugin] NULL pointer exception when starting minecraft
I'm experiencing a similar problem, though since it occurs at a different
place in the source code, I'm not sure if it's a different bug or just in
some slightly different version of NetX where stuff has been moved around.
Either way, I fixed the NPE I was having with the following small patch:
--- icedtea-web-1.3.1.orig/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+++ icedtea-web-1.3.1/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
@@ -1115,7 +1115,7 @@ public class JNLPClassLoader extends URL
}
// Class from host X should be allowed to connect to host X
- if (cs.getLocation().getHost().length() > 0)
+ if ((cs.getLocation() != null) && (cs.getLocation().getHost() != null) && (cs.getLocation().getHost().length() > 0))
result.add(new SocketPermission(cs.getLocation().getHost(),
"connect, accept"));
As you can see, it's a very simple patch with no other side effects, so I
don't think it would hurt applying it until upstream can fix the problem
for real.
--
Fredrik Tolf