aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/itmill/toolkit/ui/CustomComponent.java
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-12-18 11:51:18 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-12-18 11:51:18 +0000
commit61026e4cbf89dda8c46eb5a23af084a4736aa249 (patch)
treebb3354ab076662a030efbcb0866b3a0251e2172e /src/com/itmill/toolkit/ui/CustomComponent.java
parentd238b83069b47bee03101e8089c2434b7dfa8155 (diff)
downloadvaadin-framework-61026e4cbf89dda8c46eb5a23af084a4736aa249.tar.gz
vaadin-framework-61026e4cbf89dda8c46eb5a23af084a4736aa249.zip
fixed component iterator if composition root is not yet set
svn changeset:6268/svn branch:trunk
Diffstat (limited to 'src/com/itmill/toolkit/ui/CustomComponent.java')
-rw-r--r--src/com/itmill/toolkit/ui/CustomComponent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/ui/CustomComponent.java b/src/com/itmill/toolkit/ui/CustomComponent.java
index 9a6fdc3391..dd4b1577c2 100644
--- a/src/com/itmill/toolkit/ui/CustomComponent.java
+++ b/src/com/itmill/toolkit/ui/CustomComponent.java
@@ -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;