From 4f3a27876fcefa94b46a5a88f8169925fa82643a Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sun, 10 Apr 2022 20:32:55 +0100 Subject: [PATCH] work around gui inconsistency caused by a yet-unknown condition --- gui/src/main/groovy/com/muwire/gui/PersonaCellRenderer.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gui/src/main/groovy/com/muwire/gui/PersonaCellRenderer.groovy b/gui/src/main/groovy/com/muwire/gui/PersonaCellRenderer.groovy index 1c416929..747fd569 100644 --- a/gui/src/main/groovy/com/muwire/gui/PersonaCellRenderer.groovy +++ b/gui/src/main/groovy/com/muwire/gui/PersonaCellRenderer.groovy @@ -12,6 +12,8 @@ class PersonaCellRenderer extends DefaultTableCellRenderer { Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column) + if (value == null) + return this // TODO: investigate how this can possibly happen Persona persona = (Persona) value setText("${htmlize(persona)}") if (isSelected) {