Revision: 14504
http://gate.svn.sourceforge.net/gate/?rev=14504&view=rev
Author: valyt
Date: 2011-11-09 15:42:46 +0000 (Wed, 09 Nov 2011)
Log Message:
-----------
NPE guard.
Modified Paths:
--------------
gate/trunk/src/gate/swing/XJTable.java
Modified: gate/trunk/src/gate/swing/XJTable.java
===================================================================
--- gate/trunk/src/gate/swing/XJTable.java 2011-11-08 16:54:48 UTC (rev
14503)
+++ gate/trunk/src/gate/swing/XJTable.java 2011-11-09 15:42:46 UTC (rev
14504)
@@ -159,7 +159,8 @@
Component cellComponent = prepareRenderer(getCellRenderer(row,
column),
row, column);
TableColumn tColumn = getColumnModel().getColumn(column);
- int minWidth = cellComponent.getMinimumSize().width +
spacing.width;
+ int minWidth = ( cellComponent == null ? 0 :
+ cellComponent.getMinimumSize().width ) + spacing.width;
//minimum width can only grow
//if needed, increase the max width
// if(tColumn.getMaxWidth() < minWidth)
tColumn.setMaxWidth(minWidth);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs