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:
usrdno 2010-05-06 09:31:13 +00:00
parent 4a702f8cca
commit 2544805d47
1 changed files with 1 additions and 0 deletions

View File

@ -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)) {