GUACAMOLE-678: Merge correction to URIGuacamoleProperty handling of null values.
This commit is contained in:
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user