aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java10
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);