# HG changeset patch # User Deepak Bhole # Date 1301781621 14400 # Node ID c16a09791e544fe45deca5fa5e887bcd4ac64f43 # Parent a5e96f8affa68cf44b7ba1f95b615b5809ac76a5 Handle case where source or source.getLocation() is null when checking for system jars diff -r a5e96f8affa6 -r c16a09791e54 ChangeLog --- a/ChangeLog Sat Apr 02 17:59:32 2011 -0400 +++ b/ChangeLog Sat Apr 02 18:00:21 2011 -0400 @@ -1,3 +1,8 @@ +2011-03-01 Omair Majid + + * netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java (isSystemJar): Check + for nulls. + 2011-02-23 Omair Majid RH677772: NoSuchAlgorithmException using SSL/TLS in javaws diff -r a5e96f8affa6 -r c16a09791e54 netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java --- a/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java Sat Apr 02 17:59:32 2011 -0400 +++ b/netx/net/sourceforge/jnlp/runtime/JNLPPolicy.java Sat Apr 02 18:00:21 2011 -0400 @@ -92,6 +92,10 @@ * 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();