aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Vanek <[email protected]>2013-02-28 16:03:39 +0100
committerJiri Vanek <[email protected]>2013-02-28 16:03:39 +0100
commitb1bf883b2c2f9fe7287509beaa830a78513e0af6 (patch)
treef5226e7c4ba60a62d841485d853934eaac8ae070
parent59a94f89ce7543d5a9788040de31d20fdf642c23 (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--ChangeLog5
-rw-r--r--netx/net/sourceforge/jnlp/config/SecurityValueValidator.java5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c07dcd..36c5af0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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) {
//??