]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix incorrect null check in PopupView (#10238) 64/364/1
authorHenri Sara <hesara@vaadin.com>
Fri, 23 Nov 2012 12:25:40 +0000 (14:25 +0200)
committerHenri Sara <hesara@vaadin.com>
Fri, 23 Nov 2012 12:25:40 +0000 (14:25 +0200)
Change-Id: I6a1a3754787f312bbe8fee27588f04d2d6157afe

server/src/com/vaadin/ui/PopupView.java

index f393de575b6a73de6310f4a7009433bba54bb6a1..9f43ef193a56e12dbf290ef34dcc1e5362435508 100644 (file)
@@ -212,7 +212,7 @@ public class PopupView extends AbstractComponent implements HasComponents {
      */
     @Override
     public Iterator<Component> iterator() {
-        if (content != null) {
+        if (visibleComponent != null) {
             return Collections.singletonList(visibleComponent).iterator();
         } else {
             return Collections.<Component> emptyList().iterator();