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