Fix edge case in AbstractListCell

Clear the cell if the item is updated with a null value.
This commit is contained in:
Kai S. K. Engelbart 2020-08-03 22:07:12 +02:00 committed by GitHub
parent 2491812ba0
commit 33aa851090
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ public abstract class AbstractListCell<T, U extends Node> extends ListCell<T> {
if (!(empty || item == null)) {
setCursor(Cursor.HAND);
setGraphic(renderItem(item));
} else {
setGraphic(null);
}
}