Bug 42520

Summary: NPE in Picture.getPictureData()
Product: POI Reporter: Ivan Todoroski <grnch>
Component: HSLFAssignee: POI Developers List <dev>
Severity: normal CC: jie.han
Priority: P2    
Version: 3.5-dev   
Target Milestone: ---   
Hardware: Other   
OS: other   
URL: http://www.dynamiclogic.com/Starcom_Dynamic_Logic_Decay.ppt
Attachments: copy of PPT file
copy of PPT file in case URL disappears

Description Ivan Todoroski 2007-05-25 09:12:46 UTC
To reproduce:

SlideShow slideShow = new SlideShow(new 
ShapeGroup shapeGroup = (ShapeGroup)slideShow.getSlides()[11].getShapes()[10];
Picture picture = (Picture)shapeGroup.getShapes()[0];
Comment 1 Ivan Todoroski 2007-05-25 19:50:12 UTC
Created attachment 20275 [details]
copy of PPT file
Comment 2 Ivan Todoroski 2007-05-25 19:50:44 UTC
Created attachment 20276 [details]
copy of PPT file in case URL disappears
Comment 3 Ivan Todoroski 2007-05-25 19:53:05 UTC
ignore the first attachment it was a wrong version that I modified
Comment 4 Yegor Kozlov 2007-05-26 00:31:03 UTC

The shape group on slide 11 contains a Picture with no reference to the picture
data. I changed Picture.getPictureData() to return null instead of throwing NPE
in such cases.
Comment 5 Yegor Kozlov 2008-11-05 09:20:05 UTC
Reopening a bug without description won't help us much to fix the problem.

Try the latest svn trunk. Daily builds are available at