Merge branch 'master' into feature/kotlin-contract-support

This commit is contained in:
Tim Ysewyn
2019-08-13 15:45:51 +02:00
5 changed files with 103 additions and 9 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() {