From 069d7c61410dd77a584807933f42f24c8667f58f Mon Sep 17 00:00:00 2001 From: David North Date: Thu, 31 Dec 2015 18:15:35 +0000 Subject: [PATCH] Fix example. If you don't call super for the non-ignored sheets, everything breaks because you end up with an empty workbook. https://bz.apache.org/bugzilla/show_bug.cgi?id=58219 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1722457 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xssf/streaming/examples/HybridStreaming.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java b/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java index b4a71c70a..ffa2891fd 100644 --- a/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java +++ b/src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java @@ -43,8 +43,8 @@ public class HybridStreaming { XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) { /** Avoid DOM parse of large sheet */ public void parseSheet(java.util.Map shIdMap, CTSheet ctSheet) { - if (SHEET_TO_STREAM.equals(ctSheet.getName())) { - return; + if (!SHEET_TO_STREAM.equals(ctSheet.getName())) { + super.parseSheet(shIdMap, ctSheet); } }; };