diff options
author | Artur Signell <artur@vaadin.com> | 2013-05-27 16:37:32 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-05-28 12:45:13 +0300 |
commit | e52df7cdf8bbee662f539b1cee7344debb07c586 (patch) | |
tree | b7408dce2400ee2c06bbf8dd8844e9b495c23d60 /server/src/com/vaadin/ui/UI.java | |
parent | cb1f63b8606ae23088a62f26dc8979885c5cd19c (diff) | |
download | vaadin-framework-e52df7cdf8bbee662f539b1cee7344debb07c586.tar.gz vaadin-framework-e52df7cdf8bbee662f539b1cee7344debb07c586.zip |
Added ComponentConnector.isAttached (#11928)
Change-Id: I70d7d78a0d9de76080f6e0770a48504af8abdd84
Diffstat (limited to 'server/src/com/vaadin/ui/UI.java')
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 234a309c06..bbc1d0cd33 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -419,7 +419,7 @@ public abstract class UI extends AbstractSingleComponentContainer implements throw new NullPointerException("Argument must not be null"); } - if (window.getUI() != null && window.getUI().getSession() != null) { + if (window.isAttached()) { throw new IllegalArgumentException( "Window is already attached to an application."); } |