diff -r 2a4f622776e9 netx/net/sourceforge/jnlp/SecurityDesc.java --- a/netx/net/sourceforge/jnlp/SecurityDesc.java Wed Jan 06 10:53:12 2016 +0100 +++ b/netx/net/sourceforge/jnlp/SecurityDesc.java Wed Jan 06 16:00:02 2016 +0100 @@ -415,7 +415,11 @@ } } try { - final URI codebase = file.getCodeBase().toURI().normalize(); + URL codebaseOriginal = file.getCodeBase(); + if (codebaseOriginal == null){ + codebaseOriginal =file.sourceLocation; + } + final URI codebase = codebaseOriginal.toURI().normalize(); final URI host = getHost(codebase); final String codebaseHostUriString = host.toString(); final String urlPermissionUrlString = appendRecursiveSubdirToCodebaseHostString(codebaseHostUriString);