]> source.dussan.org Git - poi.git/commitdiff
[bug-66216] fix issue where pivotTable.getPivotCacheDefinition() returns null
authorPJ Fanning <fanningpj@apache.org>
Mon, 15 Aug 2022 23:01:50 +0000 (23:01 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 15 Aug 2022 23:01:50 +0000 (23:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903445 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java

index 506f3bc201f4cb6cde9133583d40cc78ef69cbe7..f7db5c755d13eaf649f59dc4e4e2267f6841dbc0 100644 (file)
@@ -97,6 +97,7 @@ public class XSSFPivotTable extends POIXMLDocumentPart {
         for (POIXMLDocumentPart documentPart : getRelations()) {
             if (documentPart instanceof XSSFPivotCacheDefinition) {
                 pivotCacheDefinition = (XSSFPivotCacheDefinition) documentPart;
+                break;
             }
         }
     }