mirror of https://github.com/zlatinb/muwire
prevent NPE
parent
6114389014
commit
27d37e55f4
|
@ -24,6 +24,9 @@ class TrustCellRenderer extends DefaultTableCellRenderer {
|
||||||
Component getTableCellRendererComponent(JTable table, Object value,
|
Component getTableCellRendererComponent(JTable table, Object value,
|
||||||
boolean isSelected, boolean hasFocus, int row, int column) {
|
boolean isSelected, boolean hasFocus, int row, int column) {
|
||||||
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column)
|
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column)
|
||||||
|
|
||||||
|
if (value == null)
|
||||||
|
return this // TODO: investigate
|
||||||
|
|
||||||
TrustLevel level = (TrustLevel) value
|
TrustLevel level = (TrustLevel) value
|
||||||
switch(value) {
|
switch(value) {
|
||||||
|
|
Loading…
Reference in New Issue