PDA

View Full Version : [OPEN] [FNR] Hide column on a not rendered grid results in NPE - GXT 2.2.0



haplo
2 Sep 2010, 1:15 AM
I extended the GridSelectionModel and overwrote the handelColumnHidden method:



protected void handleColumnHidden(ColumnModelEvent e) {
int col = e.getColIndex();
ColumnHeader columnHeader = grid.getView().getHeader();
if (columnHeader != null) {
ColumnHeader.Head h = columnHeader.getHead(col);
if (h == selectedHeader) {
selectedHeader = null;
}
}
}


The columnHeader is null in case the grid is not rendered.

sven
2 Sep 2010, 10:47 AM
Fixed in SVN as of revision 2214