mirror of https://github.com/zlatinb/muwire
work around gui inconsistency caused by a yet-unknown condition
parent
9aa87f6201
commit
4f3a27876f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue