GUACAMOLE-678: Return null for null property values.

This commit is contained in:
Virtually Nick
2020-06-24 20:38:48 -04:00
parent eb56eb652f
commit 349fac9d1a

View File

@@ -32,6 +32,10 @@ public abstract class URIGuacamoleProperty implements GuacamoleProperty<URI> {
@Override @Override
public URI parseValue(String value) throws GuacamoleException { public URI parseValue(String value) throws GuacamoleException {
// If nothing is provided, just return null.
if (value == null)
return null;
try { try {
return new URI(value); return new URI(value);
} }