You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by gb...@apache.org on 2010/11/23 14:35:05 UTC
svn commit: r1038106 -
/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewImageCellRenderer.java
Author: gbrown
Date: Tue Nov 23 13:35:05 2010
New Revision: 1038106
URL: http://svn.apache.org/viewvc?rev=1038106&view=rev
Log:
Don't generate warning for null values in TableViewImageCellRenderer.
Modified:
pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewImageCellRenderer.java
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewImageCellRenderer.java
URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewImageCellRenderer.java?rev=1038106&r1=1038105&r2=1038106&view=diff
==============================================================================
--- pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewImageCellRenderer.java (original)
+++ pivot/trunk/wtk/src/org/apache/pivot/wtk/content/TableViewImageCellRenderer.java Tue Nov 23 13:35:05 2010
@@ -80,7 +80,8 @@ public class TableViewImageCellRenderer
Object cellData = rowData.get(columnName);
- if (cellData instanceof Image) {
+ if (cellData == null
+ || cellData instanceof Image) {
image = (Image)cellData;
} else {
System.err.println("Data for \"" + columnName + "\" is not an instance of "