Author: fanningpj
Date: Mon Aug 15 23:01:50 2022
New Revision: 1903445

URL: http://svn.apache.org/viewvc?rev=1903445&view=rev
Log:
[bug-66216] fix issue where pivotTable.getPivotCacheDefinition() returns null

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

Modified: 
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java?rev=1903445&r1=1903444&r2=1903445&view=diff
==============================================================================
--- 
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
 (original)
+++ 
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFPivotTable.java
 Mon Aug 15 23:01:50 2022
@@ -97,6 +97,7 @@ public class XSSFPivotTable extends POIX
         for (POIXMLDocumentPart documentPart : getRelations()) {
             if (documentPart instanceof XSSFPivotCacheDefinition) {
                 pivotCacheDefinition = (XSSFPivotCacheDefinition) documentPart;
+                break;
             }
         }
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to