From: Juho Nurminen Date: Mon, 27 Jan 2014 11:30:38 +0000 (+0200) Subject: Re-adjusted the rendering order of TabSheet tabs to prevent an NPE in isClipped ... X-Git-Tag: 7.1.11~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69983d0aa0400a3c110e960d0f9da0ca0a59a094;p=vaadin-framework.git Re-adjusted the rendering order of TabSheet tabs to prevent an NPE in isClipped (#12343) Change-Id: I0705c02c12b5f0e998fda68fd7a144e45173a75e --- diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java index b65f058a46..a3d96983e8 100644 --- a/client/src/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/com/vaadin/client/ui/VTabsheet.java @@ -841,8 +841,8 @@ public class VTabsheet extends VTabsheetBase implements Focusable, tab = tb.addTab(); } if (selected) { - renderContent(tabUidl.getChildUIDL(0)); tb.selectTab(index); + renderContent(tabUidl.getChildUIDL(0)); } tab.updateFromUIDL(tabUidl); tab.setEnabledOnServer((!disabledTabKeys.contains(tabKeys.get(index))));