if (data == null) return 0;
return data.size();</BUG>
}
@Override
<BUG>public Object getValueAt(int row, int column) {
if (data == null) return null;
return data.get(row);</BUG>
}
public void setData(List<SearchResult> data) {
if (data == null) {

NamedResultTableModel(ListSelectionModel selectionModel) {
data = new ArrayList<>();
this.selectionModel = selectionModel;
}
@Override
public int getRowCount() {
return data != null ? data.size() : 0;
}
@Override
public Object getValueAt(int row, int column) {
return data != null ? data.get(row) : null;
}
public void setData(List<SearchResult> data) {
if (data == null) {
