From efaa3eb8c3598dc113155a978c9c4e08930d47f5 Mon Sep 17 00:00:00 2001 From: CyB3RC0nN0R 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); } }