diff --git a/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java b/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java index fd2e937..e3facb5 100644 --- a/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java +++ b/src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java @@ -590,7 +590,7 @@ public int getTabCount() { return (int) getTabs().count(); } - private Stream getTabs() { + public Stream getTabs() { return getContent().getItems().stream().map(EnhancedTabs::getTab).filter(Objects::nonNull); }