From: David North Date: Thu, 31 Dec 2015 18:15:35 +0000 (+0000) Subject: Fix example. If you don't call super for the non-ignored sheets, everything breaks... X-Git-Tag: REL_3_14_FINAL~126 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=38017a61de81ab74c8717b024b3788ed0a305d2b;p=poi.git 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 --- 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 b4a71c70a0..ffa2891fd0 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); } }; };