https://bz.apache.org/bugzilla/show_bug.cgi?id=64838
--- Comment #5 from Dominik Stadler <[email protected]> --- The following change would remove this check and adding of the paragraph, but it seems to have been added for a reason a long time ago, probably for a similar reason to what Sayi explained, so I fear reverting this in general might have side-effects on other documents. Index: src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java (revision d427ca10e24dfc4b43985a0dd87ad750ca1e18ba) +++ src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableCell.java (revision 3304c1bdfa571730386f147116586917ac40762f) @@ -80,9 +80,7 @@ this.ctTc = cell; this.part = part; this.tableRow = tableRow; - // NB: If a table cell does not include at least one block-level element, then this document shall be considered corrupt. - if (cell.sizeOfPArray() < 1) - cell.addNewP(); + bodyElements = new ArrayList<>(); paragraphs = new ArrayList<>(); tables = new ArrayList<>(); -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
