Fix edge case in AbstractListCell
Clear the cell if the item is updated with a null value.
This commit is contained in:
parent
615c317598
commit
efaa3eb8c3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user