Summary: | [PATCH] Fix rare NPE on getFillPaint | ||
---|---|---|---|
Product: | POI | Reporter: | Mate Borcsok <bmateusz> |
Component: | XSLF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 4.0.x-dev | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
test-data/slideshow/gradient-fill-in-group.pptx
test case and fix for bug63200 |
Created attachment 36453 [details] test case and fix for bug63200 |
Created attachment 36452 [details] test-data/slideshow/gradient-fill-in-group.pptx I found an edge case where calling getFillColor on a shape which calls getFillPaint throws a NullPointerException. The fill of the shape is gradient fill, but the CTGradientStopList is null. Attached example pptx, test case, and the fix.