git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842782 13f79535-47bb-0310-9956-ffa450edef68tags/REL_4_0_1
@@ -701,7 +701,8 @@ implements XSLFShapeContainer, Sheet<XSLFShape,XSLFTextParagraph> { | |||
for (XSLFShape shape : pictureShape.getSheet().getShapes()) { | |||
if (shape instanceof XSLFPictureShape) { | |||
XSLFPictureShape currentPictureShape = ((XSLFPictureShape) shape); | |||
if (currentPictureShape.getBlipId().equals(targetBlipId)) { | |||
String currentBlipId = currentPictureShape.getBlipId(); | |||
if (currentBlipId != null && currentBlipId.equals(targetBlipId)) { | |||
numberOfRelations++; | |||
} | |||
} |