summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/event
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-05-27 16:37:32 +0300
committerArtur Signell <artur@vaadin.com>2013-05-28 12:45:13 +0300
commite52df7cdf8bbee662f539b1cee7344debb07c586 (patch)
treeb7408dce2400ee2c06bbf8dd8844e9b495c23d60 /server/src/com/vaadin/event
parentcb1f63b8606ae23088a62f26dc8979885c5cd19c (diff)
downloadvaadin-framework-e52df7cdf8bbee662f539b1cee7344debb07c586.tar.gz
vaadin-framework-e52df7cdf8bbee662f539b1cee7344debb07c586.zip
Added ComponentConnector.isAttached (#11928)
Change-Id: I70d7d78a0d9de76080f6e0770a48504af8abdd84
Diffstat (limited to 'server/src/com/vaadin/event')
-rw-r--r--server/src/com/vaadin/event/dd/acceptcriteria/SourceIs.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/com/vaadin/event/dd/acceptcriteria/SourceIs.java b/server/src/com/vaadin/event/dd/acceptcriteria/SourceIs.java
index 65c1050fb0..0cc2f0a1a5 100644
--- a/server/src/com/vaadin/event/dd/acceptcriteria/SourceIs.java
+++ b/server/src/com/vaadin/event/dd/acceptcriteria/SourceIs.java
@@ -48,7 +48,7 @@ public class SourceIs extends ClientSideCriterion {
int paintedComponents = 0;
for (int i = 0; i < components.length; i++) {
Component c = components[i];
- if (c.getUI() != null && c.getUI().getSession() != null) {
+ if (c.isAttached()) {
target.addAttribute("component" + paintedComponents++, c);
} else {
Logger.getLogger(SourceIs.class.getName())