From 7e432a3211a3fd259897224849489690fd767f0e Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Wed, 11 Sep 2019 22:02:14 +0000 Subject: [PATCH] #63541 - NullPointerException from XSLFSimpleShape.getAnchor for empty xfrm tags git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866810 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java index 89f312327b..64ff9a9766 100644 --- a/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java +++ b/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java @@ -151,7 +151,7 @@ public abstract class XSLFSimpleShape extends XSLFShape public Rectangle2D getAnchor() { CTTransform2D xfrm = getXfrm(false); - if (xfrm == null) { + if (xfrm == null || !xfrm.isSetOff()) { return null; } -- 2.39.5