]> source.dussan.org Git - vaadin-framework.git/commitdiff
#5916 Added null check
authorArtur Signell <artur.signell@itmill.com>
Thu, 11 Aug 2011 13:00:11 +0000 (13:00 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 11 Aug 2011 13:00:11 +0000 (13:00 +0000)
svn changeset:20305/svn branch:6.7

src/com/vaadin/ui/Table.java

index 1098b47e1c4268952113417615a8739f862cdbfe..5cdb2118a4331edb849ec42b45638af7d28842ae 100644 (file)
@@ -1559,7 +1559,7 @@ public class Table extends AbstractSelect implements Action.Container,
                             ColumnGenerator cg = columnGenerators
                                     .get(colids[j]);
                             value = cg.generateCell(this, id, colids[j]);
-                            if (!(value instanceof Component)
+                            if (value != null && !(value instanceof Component)
                                     && !(value instanceof String)) {
                                 // Avoid errors if a generator returns something
                                 // other than a Component or a String