From b791c7480534cf1739b38174e1fab8a7b272b8ec Mon Sep 17 00:00:00 2001 From: Deepak Bhole Date: Thu, 7 Jun 2012 11:12:03 -0400 Subject: Fixed bug in previous commit for PR861 --- netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'netx/net/sourceforge') 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); -- cgit v1.2.3