mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
POI-60342: handle missing sdtcontentcell in an sdtcell
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1768054 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
14645fe5a8
commit
e23110968c
@ -45,6 +45,10 @@ public class XWPFSDTContentCell implements ISDTContent {
|
||||
public XWPFSDTContentCell(CTSdtContentCell sdtContentCell,
|
||||
XWPFTableRow xwpfTableRow, IBody part) {
|
||||
super();
|
||||
//sdtContentCell is allowed to be null: minOccurs="0" maxOccurs="1"
|
||||
if (sdtContentCell == null) {
|
||||
return;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
XmlCursor cursor = sdtContentCell.newCursor();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user