https://issues.apache.org/bugzilla/show_bug.cgi?id=56514
Bug ID: 56514
Summary: NullPointerException in XSSFSimpleShape constructor
Product: POI
Version: 3.11-dev
Hardware: PC
OS: Windows Vista
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Created attachment 31607
--> https://issues.apache.org/bugzilla/attachment.cgi?id=31607&action=edit
test sample file
Hi
I encountered a NullPointerException in XSSFDrawing.getShapes()
The cause is the constructor
protected XSSFSimpleShape(XSSFDrawing drawing, CTShape ctShape)
which runs the loop
for(int i = 0; i < body.sizeOfPArray(); i++)
without checking if the "body" variable is null
The attached test class "TestXSSFDrawingGetShapes.java" demonstrates the error
with the attached test sample file "shapes.xlsx"
Kind Regards
Joachim
--
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]