From 600f5f3238ecca22a8e7890d0656b0a23bd7dbba Mon Sep 17 00:00:00 2001 From: Yuriy Artamonov Date: Thu, 26 Sep 2013 11:37:42 +0400 Subject: Do not try to focus invisible components which not present in UIDL #12654 Change-Id: I365940e72d97426eceb408878bc8b24d7655de7c --- client/src/com/vaadin/client/ui/ui/UIConnector.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'client') 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 -- cgit v1.2.3