diff options
author | Yuriy Artamonov <artamonov@haulmont.com> | 2013-09-26 11:37:42 +0400 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-10-02 08:04:45 +0000 |
commit | 600f5f3238ecca22a8e7890d0656b0a23bd7dbba (patch) | |
tree | 03e97bc6c385118449e6983a6123d49aabbf0d02 | |
parent | 5966f01b9f804621ac123792850b43e86399ec60 (diff) | |
download | vaadin-framework-600f5f3238ecca22a8e7890d0656b0a23bd7dbba.tar.gz vaadin-framework-600f5f3238ecca22a8e7890d0656b0a23bd7dbba.zip |
Do not try to focus invisible components which not present in UIDL #12654
Change-Id: I365940e72d97426eceb408878bc8b24d7655de7c
-rw-r--r-- | client/src/com/vaadin/client/ui/ui/UIConnector.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ui/ui/UIConnector.java b/client/src/com/vaadin/client/ui/ui/UIConnector.java index c6d2e1436b..46b5f63180 100644 --- a/client/src/com/vaadin/client/ui/ui/UIConnector.java +++ b/client/src/com/vaadin/client/ui/ui/UIConnector.java @@ -319,6 +319,11 @@ public class UIConnector extends AbstractSingleComponentContainerConnector ComponentConnector paintable = (ComponentConnector) uidl .getPaintableAttribute("focused", getConnection()); + if (paintable == null) { + // Do not try to focus invisible components which not present in UIDL + return; + } + final Widget toBeFocused = paintable.getWidget(); /* * Two types of Widgets can be focused, either implementing |