Bug 42484 - NullPointerException from ShapeGroup.getAnchor()
Summary: NullPointerException from ShapeGroup.getAnchor()
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.0-dev
Hardware: Other other
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL: http://thefdp.org/alterman_security.ppt
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 20:10 UTC by Ivan Todoroski
Modified: 2007-05-24 05:13 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Todoroski 2007-05-21 20:10:05 UTC
The actual method being called is Shape.getAnchor() since ShapeGroup doesn't 
override it, but apparently it doesn't work for ShapeGroups.

It's the same file as in bug #42481 (you can find a copy attached there if the 
URL above disappears). To reproduce:

new SlideShow(new 
HSLFSlideShow("alterman_security.ppt")).getSlides()[9].getShapes()[1].getAnchor();
Comment 1 Yegor Kozlov 2007-05-24 05:13:20 UTC
Fixed.

ShapeGroup.getAnchor() is overridden - it reads data from EscherSpgrRecord which
stores the information about shape group.

Yegor