From 5add4aa3d3e22e734fa001120161f688fe9f2b36 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 13 Aug 2022 14:33:16 +0000 Subject: [PATCH] [bug-66211] don't validate the row XML when using XSSFTable.updateHeaders git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903390 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java index ff243e0e84..54f8752b91 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFTable.java @@ -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) { -- 2.39.5