]> source.dussan.org Git - poi.git/commitdiff
[bug-66211] don't validate the row XML when using XSSFTable.updateHeaders
authorPJ Fanning <fanningpj@apache.org>
Sat, 13 Aug 2022 14:33:16 +0000 (14:33 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 13 Aug 2022 14:33:16 +0000 (14:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903390 13f79535-47bb-0310-9956-ffa450edef68

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

index ff243e0e84c0d2f39a89de32ec9ef5fe8785a219..54f8752b91ab789697394b99a798fc1a491603d2 100644 (file)
@@ -798,7 +798,7 @@ public class XSSFTable extends POIXMLDocumentPart implements Table {
         XSSFRow row = sheet.getRow(headerRow);
         DataFormatter formatter = new DataFormatter();
 
-        if (row != null && row.getCTRow().validate()) {
+        if (row != null) {
             int cellnum = firstHeaderColumn;
             CTTableColumns ctTableColumns = getCTTable().getTableColumns();
             if(ctTableColumns != null) {