commit | 349fac9d1a31e63b253b515e07823781fb483940 | [log] [tgz] |
---|---|---|
author | Virtually Nick <vnick@apache.org> | Wed Jun 24 20:38:48 2020 -0400 |
committer | Virtually Nick <vnick@apache.org> | Wed Jun 24 20:38:48 2020 -0400 |
tree | 60ac10443882b1e11d0ff55a3c9ab650ffe999d8 | |
parent | eb56eb652f2acbfd1059de84d59df0faf5b1f6fe [diff] |
GUACAMOLE-678: Return null for null property values.
diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/properties/URIGuacamoleProperty.java b/guacamole-ext/src/main/java/org/apache/guacamole/properties/URIGuacamoleProperty.java index d40f91e..7f53bf8 100644 --- a/guacamole-ext/src/main/java/org/apache/guacamole/properties/URIGuacamoleProperty.java +++ b/guacamole-ext/src/main/java/org/apache/guacamole/properties/URIGuacamoleProperty.java
@@ -32,6 +32,10 @@ @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); }