]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed #2379 : FeatureBrowser Table demo does not start
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Thu, 18 Dec 2008 19:53:52 +0000 (19:53 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Thu, 18 Dec 2008 19:53:52 +0000 (19:53 +0000)
svn changeset:6291/svn branch:trunk

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

index fe8d7b18bc4a319a6e9b5d50c20342329ed42b72..29f38ce347a4a54e587bfaa9a7036b5eaebf7031 100644 (file)
@@ -3025,19 +3025,22 @@ public class Table extends AbstractSelect implements Action.Container,
     // Virtually identical to AbstractCompoenentContainer.setEnabled();
     public void requestRepaintAll() {
         requestRepaint();
-        for (Iterator childIterator = visibleComponents.iterator(); childIterator
-                .hasNext();) {
-            Component c = (Component) childIterator.next();
-            if (c instanceof Form) {
-                // Form has children in layout, but is not ComponentContainer
-                c.requestRepaint();
-                ((Form) c).getLayout().requestRepaintAll();
-            } else if (c instanceof Table) {
-                ((Table) c).requestRepaintAll();
-            } else if (c instanceof ComponentContainer) {
-                ((ComponentContainer) c).requestRepaintAll();
-            } else {
-                c.requestRepaint();
+        if (visibleComponents != null) {
+            for (Iterator childIterator = visibleComponents.iterator(); childIterator
+                    .hasNext();) {
+                Component c = (Component) childIterator.next();
+                if (c instanceof Form) {
+                    // Form has children in layout, but is not
+                    // ComponentContainer
+                    c.requestRepaint();
+                    ((Form) c).getLayout().requestRepaintAll();
+                } else if (c instanceof Table) {
+                    ((Table) c).requestRepaintAll();
+                } else if (c instanceof ComponentContainer) {
+                    ((ComponentContainer) c).requestRepaintAll();
+                } else {
+                    c.requestRepaint();
+                }
             }
         }
     }