GUACAMOLE-678: Merge correction to URIGuacamoleProperty handling of null values.

This commit is contained in:
Mike Jumper
2020-06-24 17:46:02 -07:00
committed by GitHub

View File

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