]> source.dussan.org Git - vaadin-framework.git/commitdiff
Re-adjusted the rendering order of TabSheet tabs to prevent an NPE in isClipped ...
authorJuho Nurminen <juho@vaadin.com>
Mon, 27 Jan 2014 11:30:38 +0000 (13:30 +0200)
committerVaadin Code Review <review@vaadin.com>
Thu, 30 Jan 2014 08:28:22 +0000 (08:28 +0000)
Change-Id: I0705c02c12b5f0e998fda68fd7a144e45173a75e

client/src/com/vaadin/client/ui/VTabsheet.java

index b65f058a46040c52f8da5822380f9e5fab5f885e..a3d96983e8412b079720a462b710ef28d7009bbb 100644 (file)
@@ -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))));