From: Joonas Lehtinen Date: Wed, 24 Sep 2008 08:06:17 +0000 (+0000) Subject: Fixes #2089 : Warning: Ignoring variable change for non-existent component, VAR_PID... X-Git-Tag: 6.7.0.beta1~4108 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c4175fd0ceca338606e5e739bff210ae3d278009;p=vaadin-framework.git Fixes #2089 : Warning: Ignoring variable change for non-existent component, VAR_PID=PID0 svn changeset:5493/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java index 22d00251d5..9a8ba47b2a 100644 --- a/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java +++ b/src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java @@ -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) {