Closed paulroemer closed 4 years ago
The problem is this event listener that doesn't have a null check for the value: https://github.com/vaadin/vaadin-time-picker-flow/blob/2.0.6/vaadin-time-picker-flow-demo/src/main/java/com/vaadin/flow/component/timepicker/demo/TimePickerView.java#L150
timePicker.addValueChangeListener(event -> {
LocalTime value = event.getValue();
localTimeValue.setText(String.format(localTimeValueFormat,
value.getHour(), value.getMinute(), value.getSecond(), // <- value is null when set to empty on client
value.get(ChronoField.MILLI_OF_SECOND)));
});
Very easy to fix.
Fixed by #102
Where:
What: Select a time, delete it again and press enter.