diff options
author | Jiri Vanek <[email protected]> | 2013-02-28 16:03:39 +0100 |
---|---|---|
committer | Jiri Vanek <[email protected]> | 2013-02-28 16:03:39 +0100 |
commit | b1bf883b2c2f9fe7287509beaa830a78513e0af6 (patch) | |
tree | f5226e7c4ba60a62d841485d853934eaac8ae070 | |
parent | 59a94f89ce7543d5a9788040de31d20fdf642c23 (diff) |
* netx/net/sourceforge/jnlp/config/SecurityValueValidator.java: modifed
null check - no considered as correct value as being valid value in runtime.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/config/SecurityValueValidator.java | 5 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2013-02-28 Jiri Vanek <[email protected]> + + * netx/net/sourceforge/jnlp/config/SecurityValueValidator.java: modifed + null check - no considered as correct value as being valid value in runtime. + 2013-02-27 Jiri Vanek <[email protected]> Added backend and settings for extended applet security diff --git a/netx/net/sourceforge/jnlp/config/SecurityValueValidator.java b/netx/net/sourceforge/jnlp/config/SecurityValueValidator.java index 099cabd..e217aa1 100644 --- a/netx/net/sourceforge/jnlp/config/SecurityValueValidator.java +++ b/netx/net/sourceforge/jnlp/config/SecurityValueValidator.java @@ -45,7 +45,10 @@ class SecurityValueValidator implements ValueValidator { @Override public void validate(Object value) throws IllegalArgumentException { if (value == null) { - throw new IllegalArgumentException("Value can't be null"); + // null is correct, it means it is not user set + // and so default shoudl be used whatever it is + // returning to prevent NPE in fromString + return; } if (value instanceof AppletSecurityLevel) { //?? |