]> source.dussan.org Git - poi.git/commitdiff
Fix example. If you don't call super for the non-ignored sheets, everything breaks...
authorDavid North <dnorth@apache.org>
Thu, 31 Dec 2015 18:15:35 +0000 (18:15 +0000)
committerDavid North <dnorth@apache.org>
Thu, 31 Dec 2015 18:15:35 +0000 (18:15 +0000)
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

src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java

index b4a71c70a0196787c5982f80882f8b9dfa1241eb..ffa2891fd0a676bb1db4c2005bcd93edd6d82775 100644 (file)
@@ -43,8 +43,8 @@ public class HybridStreaming {
         XSSFWorkbook workbook = new XSSFWorkbook(sourceBytes) {
             /** Avoid DOM parse of large sheet */
             public void parseSheet(java.util.Map<String,XSSFSheet> shIdMap, CTSheet ctSheet) {
-                if (SHEET_TO_STREAM.equals(ctSheet.getName())) {
-                    return;
+                if (!SHEET_TO_STREAM.equals(ctSheet.getName())) {
+                    super.parseSheet(shIdMap, ctSheet);
                 }
             };
         };