Bug 62929

Summary: [PATCH] Missing blip fill of picture causes NPE
Product: POI Reporter: Mate Borcsok <bmateusz>
Component: XSLFAssignee: 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/missing-blip-fill.pptx
fix NPE in XSLFPictureShape and add test case to TestXSLFBugs

Description Mate Borcsok 2018-11-20 11:20:01 UTC
Created attachment 36267 [details]
test-data/slideshow/missing-blip-fill.pptx

We found a weird example (attached, added to test-data) which includes a picture but its blipFill is empty. That caused a NullPointerException.
Please check my fix proposal and the test case.
Comment 1 Mate Borcsok 2018-11-20 11:22:03 UTC
Created attachment 36268 [details]
fix NPE in XSLFPictureShape and add test case to TestXSLFBugs
Comment 2 PJ Fanning 2018-11-20 14:21:02 UTC
Merged using https://svn.apache.org/viewvc?view=revision&revision=1847004