diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java b/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java index b6848887..08f18eaa 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/widget/WidgetFactory.java @@ -542,10 +542,6 @@ public class WidgetFactory { return input; } -// public Text numberInput(final Composite content, final Consumer numberCheck, final LocTextKey label) { -// return numberInput(content, numberCheck, false, label); -// } - public Text numberInput( final Composite content, final Consumer numberCheck, @@ -563,6 +559,9 @@ public class WidgetFactory { if (numberCheck != null) { numberInput.addListener(SWT.Verify, event -> { final String value = event.text; + if (StringUtils.isBlank(value)) { + return; + } try { numberCheck.accept(value); } catch (final Exception e) {