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 /netx/net/sourceforge/jnlp | |
parent | 59a94f89ce7543d5a9788040de31d20fdf642c23 (diff) |
* netx/net/sourceforge/jnlp/config/SecurityValueValidator.java: modifed
null check - no considered as correct value as being valid value in runtime.
Diffstat (limited to 'netx/net/sourceforge/jnlp')
-rw-r--r-- | netx/net/sourceforge/jnlp/config/SecurityValueValidator.java | 5 |
1 files changed, 4 insertions, 1 deletions
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) { //?? |