From b1bf883b2c2f9fe7287509beaa830a78513e0af6 Mon Sep 17 00:00:00 2001 From: Jiri Vanek <jvanek@redhat.com> Date: Thu, 28 Feb 2013 16:03:39 +0100 Subject: * netx/net/sourceforge/jnlp/config/SecurityValueValidator.java: modifed null check - no considered as correct value as being valid value in runtime. --- netx/net/sourceforge/jnlp/config/SecurityValueValidator.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'netx/net/sourceforge') 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) { //?? -- cgit v1.2.3