NPE when hiding columns in grid view. Minor fix.
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2997513
This commit is contained in:
parent
4a702f8cca
commit
2544805d47
|
@ -711,6 +711,7 @@ public class CTable extends JTable
|
|||
public Component prepareRenderer(TableCellRenderer renderer, int rowIndex,
|
||||
int vColIndex) {
|
||||
Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
|
||||
if (c==null) return c;
|
||||
if (!this.isCellEditable(rowIndex, vColIndex))
|
||||
return c;
|
||||
if (rowIndex % 2 == 0 && !isCellSelected(rowIndex, vColIndex)) {
|
||||
|
|
Loading…
Reference in New Issue