/hg/icedtea-web: Avoid potential NPE on shutdown.

adomurad at icedtea.classpath.org adomurad at icedtea.classpath.org
Thu Feb 21 12:26:28 PST 2013


changeset ad2e15f15a75 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=ad2e15f15a75
author: Adam Domurad <adomurad at redhat.com>
date: Thu Feb 21 15:26:38 2013 -0500

	Avoid potential NPE on shutdown.


diffstat:

 ChangeLog                                              |  6 ++++++
 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java |  2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r 125c427b7a42 -r ad2e15f15a75 ChangeLog
--- a/ChangeLog	Thu Feb 14 15:48:21 2013 -0500
+++ b/ChangeLog	Thu Feb 21 15:26:38 2013 -0500
@@ -1,3 +1,9 @@
+2013-02-21  Adam Domurad  <adomurad at redhat.com>
+
+	* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+	(getPermissions): avoid potential NPE if code source location is
+	missing
+
 2013-02-14  Adam Domurad  <adomurad at redhat.com>
 
 	PR835: javaws leaks connections
diff -r 125c427b7a42 -r ad2e15f15a75 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Thu Feb 14 15:48:21 2013 -0500
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java	Thu Feb 21 15:26:38 2013 -0500
@@ -1144,7 +1144,7 @@
             }
 
             // 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().length() > 0)
                 result.add(new SocketPermission(cs.getLocation().getHost(),
                         "connect, accept"));
 



More information about the distro-pkg-dev mailing list