Fix edge case in AbstractListCell
Clear the cell if the item is updated with a null value.
This commit is contained in:
parent
2491812ba0
commit
33aa851090
@ -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