diff options
author | Adam Domurad <[email protected]> | 2013-02-21 15:26:38 -0500 |
---|---|---|
committer | Adam Domurad <[email protected]> | 2013-02-21 15:26:38 -0500 |
commit | 47235486f15eef6bda09e600c75849d6a6a02405 (patch) | |
tree | 800f50f232ba0b34edaf9ed323f16a15eff1d051 /netx/net/sourceforge | |
parent | 59d2d03b074c70cc9c771d4787353726b1426d91 (diff) |
Avoid potential NPE on shutdown.
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index 73de95f..66dad2f 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -1144,7 +1144,7 @@ public class JNLPClassLoader extends URLClassLoader { } // 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")); |