This commit is contained in:
anatoliy-balakirev
2019-08-13 15:28:02 +02:00
committed by Marcin Grzejszczak
parent f1731e018e
commit ca72481d10
3 changed files with 95 additions and 4 deletions

View File

@@ -44,8 +44,15 @@ public class OptionalProperty implements Serializable, CanBeDynamic {
}
public String value() {
return this.value instanceof RegexProperty
? ((RegexProperty) this.value).pattern() : this.value.toString();
if (this.value == null) {
return "";
}
else if (this.value instanceof RegexProperty) {
return ((RegexProperty) this.value).pattern();
}
else {
return this.value.toString();
}
}
protected Pattern optionalPatternValue() {