work around gui inconsistency caused by a yet-unknown condition

dbus-notify
Zlatin Balevsky 2022-04-10 20:32:55 +01:00
parent 9aa87f6201
commit 4f3a27876f
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 0 deletions

View File

@ -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("<html>${htmlize(persona)}</html>")
if (isSelected) {