Revision: 1236
Author:   mathiasbr
Date:     2006-07-25 23:34:27 -0700 (Tue, 25 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/spring-rich-c/?rev=1236&view=rev

Log Message:
-----------
handle null rows

Modified Paths:
--------------
    
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/ListTableModel.java
Modified: 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/ListTableModel.java
===================================================================
--- 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/ListTableModel.java
      2006-07-25 13:47:46 UTC (rev 1235)
+++ 
trunk/spring-richclient/support/src/main/java/org/springframework/richclient/table/ListTableModel.java
      2006-07-26 06:34:27 UTC (rev 1236)
@@ -35,7 +35,7 @@
     }
 
     protected Object getValueAtInternal(Object row, int columnIndex) {
-        if (getDataColumnCount() > 1) {
+        if (row != null && getDataColumnCount() > 1) {            
             if (row.getClass().isArray()) {
                 Object[] arrayRow = (Object[])row;
                 return arrayRow[columnIndex];
@@ -48,7 +48,7 @@
             }
         }
 
-        if (row != null & row.getClass().isArray())
+        if (row != null && row.getClass().isArray())
             return ((Object[])row)[0];
 
         return row;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to