mirror of https://github.com/apache/poi.git
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
710b10eb1f
commit
894c74386e
|
@ -576,7 +576,7 @@ class RenderableShape {
|
||||||
|
|
||||||
public Guide getAdjustValue(String name) {
|
public Guide getAdjustValue(String name) {
|
||||||
CTPresetGeometry2D prst = _shape.getSpPr().getPrstGeom();
|
CTPresetGeometry2D prst = _shape.getSpPr().getPrstGeom();
|
||||||
if (prst.isSetAvLst()) {
|
if (prst != null && prst.isSetAvLst()) {
|
||||||
for (CTGeomGuide g : prst.getAvLst().getGdArray()) {
|
for (CTGeomGuide g : prst.getAvLst().getGdArray()) {
|
||||||
if (g.getName().equals(name)) {
|
if (g.getName().equals(name)) {
|
||||||
return new Guide(g);
|
return new Guide(g);
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue