diff --git a/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java b/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java index c298a2f7..3b661568 100644 --- a/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java +++ b/core/src/main/java/com/github/weisj/darklaf/components/renderer/SimpleListCellRenderer.java @@ -34,7 +34,7 @@ public class SimpleListCellRenderer extends JLabel implements ListCellRendere return new SimpleListCellRenderer() { @Override protected void customize(final T value) { - setText(toText.apply(value)); + setText(value != null ? toText.apply(value) : ""); } }; }