Created attachment 31607 [details] 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
Created attachment 31608 [details] Unit test case
Fixed in r1595127, a simple null-check in XSSFSimpleShape seems to make it work, I also checked that the resulting XLSX still looks sane in Excel.
*** Bug 56218 has been marked as a duplicate of this bug. ***