Avoid possible NullPointerException seen with some powerpoint files
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1674958 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
58145060c2
commit
5118bdb128
@ -576,7 +576,7 @@ class RenderableShape {
|
||||
|
||||
public Guide getAdjustValue(String name) {
|
||||
CTPresetGeometry2D prst = _shape.getSpPr().getPrstGeom();
|
||||
if (prst.isSetAvLst()) {
|
||||
if (prst != null && prst.isSetAvLst()) {
|
||||
for (CTGeomGuide g : prst.getAvLst().getGdArray()) {
|
||||
if (g.getName().equals(name)) {
|
||||
return new Guide(g);
|
||||
|
BIN
test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx
Normal file
BIN
test-data/slideshow/ae.ac.uaeu.faculty_nafaachbili_GeomLec1.pptx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user