diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-03 15:21:39 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-03 15:23:13 +0300 |
commit | 633f4141570f52fc78f4b0b48017c4c246cdf399 (patch) | |
tree | 7ca7e04e1030e1739ba2978e41e0a05f04c16293 /server/src | |
parent | 607010c2f972d5f80e4fe5e5fe6fda4f0b8b69e9 (diff) | |
download | vaadin-framework-633f4141570f52fc78f4b0b48017c4c246cdf399.tar.gz vaadin-framework-633f4141570f52fc78f4b0b48017c4c246cdf399.zip |
Don't return initied UI from LegacyApplication.createUIInstance (#9443)
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/Application.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server/src/com/vaadin/Application.java b/server/src/com/vaadin/Application.java index 2af3c6a59f..f368257ecd 100644 --- a/server/src/com/vaadin/Application.java +++ b/server/src/com/vaadin/Application.java @@ -239,6 +239,25 @@ public class Application implements Terminal.ErrorListener, Serializable { * This implementation simulates the way of finding a window for a * request by extracting a window name from the requested path and * passes that name to {@link #getWindow(String)}. + * <p> + * {@inheritDoc} + */ + @Override + public UI getUIForRequest(WrappedRequest request) { + UI uiInstance = getUIInstance(request); + if (uiInstance.getUIId() == -1) { + // Not initialized -> Let go through createUIInstance to make it + // initialized + return null; + } else { + return uiInstance; + } + } + + /** + * This implementation simulates the way of finding a window for a + * request by extracting a window name from the requested path and + * passes that name to {@link #getWindow(String)}. * * <p> * {@inheritDoc} |