]> source.dussan.org Git - vaadin-framework.git/commitdiff
Avoid creating content in getComponentIterator, instead report what
authorArtur Signell <artur@vaadin.com>
Thu, 22 Mar 2012 11:42:21 +0000 (13:42 +0200)
committerArtur Signell <artur@vaadin.com>
Thu, 22 Mar 2012 11:47:21 +0000 (13:47 +0200)
there is or isn't

src/com/vaadin/ui/CustomField.java

index 685092904a9a984c4f37418804ea36c9ad89619d..67063db95ed4b74c56b4e0cebaf1a7216588c239 100644 (file)
@@ -141,7 +141,7 @@ public abstract class CustomField<T> extends AbstractField<T> implements
 
     private class ComponentIterator implements Iterator<Component>,
             Serializable {
-        boolean first = getContent() != null;
+        boolean first = (root != null);
 
         public boolean hasNext() {
             return first;