mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Avoid NPE with broken files when writing endnotes for Word documents
https://issues.oss-fuzz.com/issues/391728757
This commit is contained in:
parent
e9b33c0b08
commit
c94e795f35
@ -44,7 +44,7 @@ public class XSLFAutoShape extends XSLFTextShape implements AutoShape<XSLFShape,
|
||||
static XSLFAutoShape create(CTShape shape, XSLFSheet sheet) {
|
||||
if (shape.getSpPr().isSetCustGeom()) {
|
||||
return new XSLFFreeformShape(shape, sheet);
|
||||
} else if (shape.getNvSpPr().getCNvSpPr().isSetTxBox()) {
|
||||
} else if (shape.getNvSpPr().getCNvSpPr() != null && shape.getNvSpPr().getCNvSpPr().isSetTxBox()) {
|
||||
return new XSLFTextBox(shape, sheet);
|
||||
} else {
|
||||
return new XSLFAutoShape(shape, sheet);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user