diff options
author | Artur Signell <artur@vaadin.com> | 2014-04-14 11:02:49 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-04-14 08:51:19 +0000 |
commit | 758f26b7d767f536a09ae38c28dfbf859377e66a (patch) | |
tree | 6910dca59011b9040d50b122ba337c821bb29056 /client | |
parent | d2e24feb09ccba7f3a2f253687488774af2bc340 (diff) | |
download | vaadin-framework-758f26b7d767f536a09ae38c28dfbf859377e66a.tar.gz vaadin-framework-758f26b7d767f536a09ae38c28dfbf859377e66a.zip |
Fix NPE when removing tabsheet (#13402)
Change-Id: Idc78fc1bc6380d7bfada99f1efe2484b04ce3c74
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/tabsheet/TabsheetConnector.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/tabsheet/TabsheetConnector.java b/client/src/com/vaadin/client/ui/tabsheet/TabsheetConnector.java index b472300c21..564e5847d9 100644 --- a/client/src/com/vaadin/client/ui/tabsheet/TabsheetConnector.java +++ b/client/src/com/vaadin/client/ui/tabsheet/TabsheetConnector.java @@ -176,7 +176,11 @@ public class TabsheetConnector extends TabsheetBaseConnector implements * (Re-)render the content of the active tab. */ protected void renderContent() { - ComponentConnector contentConnector = getChildComponents().get(0); + ComponentConnector contentConnector = null; + if (!getChildComponents().isEmpty()) { + contentConnector = getChildComponents().get(0); + } + if (null != contentConnector) { getWidget().renderContent(contentConnector.getWidget()); } else { |