diff options
author | Deepak Bhole <[email protected]> | 2012-06-07 11:12:03 -0400 |
---|---|---|
committer | Deepak Bhole <[email protected]> | 2012-06-07 11:12:03 -0400 |
commit | b791c7480534cf1739b38174e1fab8a7b272b8ec (patch) | |
tree | 998e56538747352c8c4ace96731e47f177e65b86 /netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | |
parent | 5319aa17959526c2848fb091cf0fe52b34b54334 (diff) |
Fixed bug in previous commit for PR861
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java')
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java index f4e71ea..a5c8403 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java @@ -1990,10 +1990,12 @@ public class JNLPClassLoader extends URLClassLoader { "connect, accept")); } - // Permissions for codebase urls - for (URL u : codeBaseLoader.getURLs()) { - permissions.add(new SocketPermission(u.getHost(), - "connect, accept")); + // Permissions for codebase urls (if there is a loader) + if (codeBaseLoader != null) { + for (URL u : codeBaseLoader.getURLs()) { + permissions.add(new SocketPermission(u.getHost(), + "connect, accept")); + } } ProtectionDomain pd = new ProtectionDomain(null, permissions); |