aboutsummaryrefslogtreecommitdiffstats
path: root/poi-ooxml
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-08-15 23:01:50 +0000
committerPJ Fanning <fanningpj@apache.org>2022-08-15 23:01:50 +0000
commit2343428015c2ba52532d0c6be45c92f7895a0d8d (patch)
tree8b93d8b3c1e7358b3ead12bee84189f2497b032e /poi-ooxml
parent3184a18b40caad5b63630a4379de34d50268f3c5 (diff)
downloadpoi-2343428015c2ba52532d0c6be45c92f7895a0d8d.tar.gz
poi-2343428015c2ba52532d0c6be45c92f7895a0d8d.zip
[bug-66216] fix issue where pivotTable.getPivotCacheDefinition() returns null
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903445 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r--poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
index 506f3bc201..f7db5c755d 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
@@ -97,6 +97,7 @@ public class XSSFPivotTable extends POIXMLDocumentPart {
for (POIXMLDocumentPart documentPart : getRelations()) {
if (documentPart instanceof XSSFPivotCacheDefinition) {
pivotCacheDefinition = (XSSFPivotCacheDefinition) documentPart;
+ break;
}
}
}