]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixed component iterator if composition root is not yet set
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 11:51:18 +0000 (11:51 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 18 Dec 2008 11:51:18 +0000 (11:51 +0000)
svn changeset:6268/svn branch:trunk

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

index 9a6fdc3391990f22cc3f6364481a6f1fca177bc8..dd4b1577c23ea91f16b387a68e2792e70e31eb2a 100644 (file)
@@ -146,7 +146,7 @@ public class CustomComponent extends AbstractComponentContainer {
 
     public Iterator getComponentIterator() {
         return new Iterator() {
-            boolean first = true;
+            boolean first = getCompositionRoot() != null;
 
             public boolean hasNext() {
                 return first;