aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples
diff options
context:
space:
mode:
authorDavid North <dnorth@apache.org>2015-12-31 18:15:35 +0000
committerDavid North <dnorth@apache.org>2015-12-31 18:15:35 +0000
commit38017a61de81ab74c8717b024b3788ed0a305d2b (patch)
treed9c6d7602abffdef287c8d7ddecd5d4e26cabd2f /src/examples
parent4b37b0d47d96ad39aa3cb227d4935e6e463bb00a (diff)
downloadpoi-38017a61de81ab74c8717b024b3788ed0a305d2b.tar.gz
poi-38017a61de81ab74c8717b024b3788ed0a305d2b.zip
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
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/src/org/apache/poi/xssf/streaming/examples/HybridStreaming.java4
1 files 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 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<String,XSSFSheet> shIdMap, CTSheet ctSheet) {
- if (SHEET_TO_STREAM.equals(ctSheet.getName())) {
- return;
+ if (!SHEET_TO_STREAM.equals(ctSheet.getName())) {
+ super.parseSheet(shIdMap, ctSheet);
}
};
};