https://bz.apache.org/bugzilla/show_bug.cgi?id=63498
Bug ID: 63498
Summary: [PATCH] NPE when calling getShapeName on XSLFTableCell
Product: POI
Version: 4.0.x-dev
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSLF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 36622
--> https://bz.apache.org/bugzilla/attachment.cgi?id=36622&action=edit
Fix in XSLFShape.java and a test for it
Calling getCNvPr() on a TableCell returns null, then we call .getName() on it
without checking it.
Please see my patch and test case. I re-used table_test.pptx from the
test-data.
I'm not sure if returning null is correct, but still better than an NPE.
--
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]