]> source.dussan.org Git - vaadin-framework.git/commitdiff
Table: check for empty table on some cache requests
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 8 Mar 2007 14:13:54 +0000 (14:13 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 8 Mar 2007 14:13:54 +0000 (14:13 +0000)
svn changeset:830/svn branch:trunk

src/com/itmill/toolkit/ui/Table.java

index c9cbcb8ba805a83a535574920e9b0ac498720e7f..139a39c9b06f52df0d97e8847d8e06dd32b6333e 100644 (file)
@@ -1562,7 +1562,7 @@ public class Table extends Select implements Action.Container,
         if (rows + firstIndex > size()) rows = size() - firstIndex;
 
         Object[][] cells = new Object[cols + CELL_FIRSTCOL][rows];
-        if (rows == 0)
+        if (rows == 0 || size() == 0)
             return cells;
 
         // Get first item id