Fix improperly accessed optional values; ServerDslProperty incorrectly wrapped by OptionalProperty (#1809)
Fixes gh-1808
This commit is contained in:
@@ -54,6 +54,9 @@ public class OptionalProperty implements Serializable, CanBeDynamic {
|
||||
else if (value instanceof ClientDslProperty) {
|
||||
return valueToCheck(((ClientDslProperty) value).getClientValue());
|
||||
}
|
||||
else if (value instanceof ServerDslProperty) {
|
||||
return valueToCheck(((ServerDslProperty) value).getServerValue());
|
||||
}
|
||||
else if (value instanceof RegexProperty || value instanceof Pattern) {
|
||||
return new RegexProperty(value).pattern();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user