From 33aa8510906261514629114cdbd5193569faff1e Mon Sep 17 00:00:00 2001 From: kske Date: Mon, 3 Aug 2020 22:07:12 +0200 Subject: [PATCH] Fix edge case in AbstractListCell Clear the cell if the item is updated with a null value. --- .../main/java/envoy/client/ui/listcell/AbstractListCell.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/main/java/envoy/client/ui/listcell/AbstractListCell.java b/client/src/main/java/envoy/client/ui/listcell/AbstractListCell.java index 2a527fd..45e424d 100644 --- a/client/src/main/java/envoy/client/ui/listcell/AbstractListCell.java +++ b/client/src/main/java/envoy/client/ui/listcell/AbstractListCell.java @@ -38,6 +38,8 @@ public abstract class AbstractListCell extends ListCell { if (!(empty || item == null)) { setCursor(Cursor.HAND); setGraphic(renderItem(item)); + } else { + setGraphic(null); } }