From bb7ffebe0fed98a4376a937277ed1d0e59f21522 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Mon, 17 Dec 2018 09:17:29 +0000 Subject: [PATCH] add null check in XLSFPictureShape git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849069 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/xslf/usermodel/XSLFPictureShape.java | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java index 01f903e193..ed11a6b197 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFPictureShape.java @@ -265,28 +265,28 @@ public class XSLFPictureShape extends XSLFSimpleShape public XSLFPictureData getSvgImage() { CTBlip blip = getBlip(); - CTOfficeArtExtensionList extLst = blip.getExtLst(); - if (extLst == null) { - return null; - } + if (blip != null) { + CTOfficeArtExtensionList extLst = blip.getExtLst(); + if (extLst == null) { + return null; + } - int size = extLst.sizeOfExtArray(); - for (int i=0; i