Interpret empty value as null in integer field

This commit is contained in:
crschnick 2023-07-10 08:13:08 +00:00
parent 9437791629
commit 5861007eff

View file

@ -68,7 +68,7 @@ public class IntFieldComp extends Comp<CompStructure<TextField>> {
text.textProperty().addListener((observableValue, oldValue, newValue) -> {
if (newValue == null || "".equals(newValue) || (minValue < 0 && "-".equals(newValue))) {
value.setValue(0);
value.setValue(null);
return;
}