Compare commits

...

2 Commits

1 changed files with 1 additions and 1 deletions

View File

@ -35,6 +35,6 @@ public abstract class ValidatableStringRecord implements IValueObject {
}
public static String getValueOrNull(Optional<? extends ValidatableStringRecord> s) {
return s.map(ValidatableStringRecord::value).orElse(null);
return s.isPresent() ? s.get().value() : null;
}
}