Commit 7214bb75 authored by Romain Bioteau's avatar Romain Bioteau
Browse files

fix(app) validators with null values

parent ff87c0ef
......@@ -72,7 +72,7 @@ public class RegExpValidator extends StringValidator {
*/
@Override
protected boolean isValid(Optional<String> value) {
return value.filter(v -> Pattern.matches(regex, v)).isPresent();
return Pattern.matches(regex, value.orElse(""));
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment