diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-07-19 15:32:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 15:32:05 +0300 |
commit | de42456db1d81d84388583dd1ad0d3ac85c298ba (patch) | |
tree | fe149f5832fa24c3a1e769caea91e76b64a2ff3d /client | |
parent | 504d4995786e8909f609be09897325bd16ffebe5 (diff) | |
download | vaadin-framework-de42456db1d81d84388583dd1ad0d3ac85c298ba.tar.gz vaadin-framework-de42456db1d81d84388583dd1ad0d3ac85c298ba.zip |
Fix removal tabsheets if last one is selected (#11070)
Fixes #10925
Diffstat (limited to 'client')
-rw-r--r-- | client/src/main/java/com/vaadin/client/ui/VTabsheet.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VTabsheet.java b/client/src/main/java/com/vaadin/client/ui/VTabsheet.java index e77e683d5b..123f89bb36 100644 --- a/client/src/main/java/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/main/java/com/vaadin/client/ui/VTabsheet.java @@ -630,7 +630,7 @@ public class VTabsheet extends VTabsheetBase for (int i = oldPosition - 1; i >= 0; i--) { Tab tab = getTab(i); - if (!tab.isHiddenOnServer()) { + if (tab != null && !tab.isHiddenOnServer()) { return i; } } @@ -1584,8 +1584,6 @@ public class VTabsheet extends VTabsheetBase * * @param blurSource * the source. - * @param focusedTabProvider - * provides the current focused tab. */ public BlurCommand(Tab blurSource) { this.blurSource = blurSource; |