summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-10-10 12:49:43 +0300
committerLeif Åstrand <leif@vaadin.com>2012-10-10 12:49:43 +0300
commitcd2317a448dd76954dd23cec1c3aa482dfafdb20 (patch)
tree17475d043c954cf2f6c06b7bccf9d1324f2cb9c9 /server
parent0dbafbce421afd8b1c4bb4c40bbb09a90d3a66e0 (diff)
downloadvaadin-framework-cd2317a448dd76954dd23cec1c3aa482dfafdb20.tar.gz
vaadin-framework-cd2317a448dd76954dd23cec1c3aa482dfafdb20.zip
Reuse provided session instead of attempting to find it again (#9888)
Change-Id: I89799e99629990730d5c94ef10254ba033f78591
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/server/AbstractCommunicationManager.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/server/src/com/vaadin/server/AbstractCommunicationManager.java b/server/src/com/vaadin/server/AbstractCommunicationManager.java
index cb41f9338b..293fd002e5 100644
--- a/server/src/com/vaadin/server/AbstractCommunicationManager.java
+++ b/server/src/com/vaadin/server/AbstractCommunicationManager.java
@@ -2430,7 +2430,7 @@ public abstract class AbstractCommunicationManager implements Serializable {
response.setContentType("application/json; charset=UTF-8");
- UI uI = getBrowserDetailsUI(request);
+ UI uI = getBrowserDetailsUI(request, session);
JSONObject params = new JSONObject();
params.put(UIConstants.UI_ID_PARAMETER, uI.getUIId());
@@ -2456,10 +2456,9 @@ public abstract class AbstractCommunicationManager implements Serializable {
}
}
- private UI getBrowserDetailsUI(VaadinRequest request) {
+ private UI getBrowserDetailsUI(VaadinRequest request,
+ VaadinServiceSession session) {
VaadinService vaadinService = request.getService();
- VaadinServiceSession session = VaadinServiceSession.getForSession(
- vaadinService, request.getWrappedSession());
List<UIProvider> uiProviders = session.getUIProviders();