aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge')
-rw-r--r--netx/net/sourceforge/jnlp/config/SecurityValueValidator.java5
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) {
//??