Prevent NPE when an uninitialized table cell is rendered.
This commit is contained in:
parent
f5d09233e8
commit
cc54a98226
@ -177,9 +177,11 @@ public abstract class FlightConfigurablePanel<T extends FlightConfigurableCompon
|
|||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
Pair<String, T> v = (Pair<String, T>) value;
|
Pair<String, T> v = (Pair<String, T>) value;
|
||||||
|
if(v!=null){
|
||||||
String id = v.getU();
|
String id = v.getU();
|
||||||
T component = v.getV();
|
T component = v.getV();
|
||||||
label = format(component, id, label );
|
label = format(component, id, label );
|
||||||
|
}
|
||||||
setSelected(label, table, isSelected, hasFocus);
|
setSelected(label, table, isSelected, hasFocus);
|
||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user