]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #2089 : Warning: Ignoring variable change for non-existent component, VAR_PID...
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 24 Sep 2008 08:06:17 +0000 (08:06 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Wed, 24 Sep 2008 08:06:17 +0000 (08:06 +0000)
svn changeset:5493/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java

index 22d00251d52daade07be7e3ad341b9a2b6571222..9a8ba47b2af2d77d59d6fb0208267893173cb0d3 100644 (file)
@@ -620,6 +620,16 @@ public class CommunicationManager implements Paintable.RepaintRequestListener {
                                     (Component) owner, e, m);
                         }
                     } else {
+
+                        // Handle special case where window-close is called
+                        // after the window has been removed from the
+                        // application or the application has closed
+                        if ("close".equals(variable[VAR_NAME])
+                                && "true".equals(variable[VAR_VALUE])) {
+                            // Silently ignore this
+                            continue;
+                        }
+
                         // Ignore variable change
                         String msg = "Warning: Ignoring variable change for ";
                         if (owner != null) {