Fix NullPointerException in PropertyCellRenderer
This commit is contained in:
parent
b1e5c7a410
commit
794eeed998
@ -991,7 +991,6 @@ final class PropertyCellRenderer implements TableCellRenderer {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
|
||||||
LOGGER.log(Level.FINEST, "Cell Component: " + value.getClass());
|
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
return empty;
|
return empty;
|
||||||
} else if (value instanceof String) {
|
} else if (value instanceof String) {
|
||||||
@ -1023,6 +1022,8 @@ final class PropertyCellRenderer implements TableCellRenderer {
|
|||||||
return (PropertyValueSelector) value;
|
return (PropertyValueSelector) value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LOGGER.log(Level.FINEST, "Cell Component: " + value.getClass());
|
||||||
|
|
||||||
throw new UnsupportedOperationException("Not supported yet.");
|
throw new UnsupportedOperationException("Not supported yet.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user