GUACAMOLE-839: Correct WildcardURIGuacamoleProperty to correctly handle missing (null) properties.
This commit is contained in:
1 parent
23a5c9476f
commit
6424b063f2
1 file changed
+3
+3
@@ -45,6 +45,9 @@ public abstract class WildcardURIGuacamoleProperty extends URIGuacamoleProperty
|
|||||||
@Override
|
@Override
|
||||||
public URI parseValue(String value) throws GuacamoleException {
|
public URI parseValue(String value) throws GuacamoleException {
|
||||||
|
|
||||||
|
if (value == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
// Verify wildcard prefix is present
|
// Verify wildcard prefix is present
|
||||||
Matcher matcher = WILDCARD_URI_PATTERN.matcher(value);
|
Matcher matcher = WILDCARD_URI_PATTERN.matcher(value);
|
||||||
if (matcher.matches()) {
|
if (matcher.matches()) {
|
||||||
|
|||||||
Reference in new issue
Block a user