diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2011-03-01 Omair Majid <[email protected]> + + * netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java (isSystemJar): Check + for nulls. + 2011-03-01 Andrew Su <[email protected]> * netx/net/sourceforge/jnlp/controlpanel/ControlPanel.java diff --git a/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java b/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java index 13f72e6..ba9b53e 100644 --- a/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java +++ b/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java @@ -137,6 +137,10 @@ public class JNLPPolicy extends Policy { * it's part of the JRE. */ private boolean isSystemJar(CodeSource source) { + if (source == null || source.getLocation() == null) { + return false; + } + // anything in JRE/lib/ext is a system jar and has full permissions String sourceProtocol = source.getLocation().getProtocol(); String sourcePath = source.getLocation().getPath(); |