]> source.dussan.org Git - poi.git/commitdiff
#63541 - NullPointerException from XSLFSimpleShape.getAnchor for empty xfrm tags
authorAndreas Beeker <kiwiwings@apache.org>
Wed, 11 Sep 2019 22:02:14 +0000 (22:02 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Wed, 11 Sep 2019 22:02:14 +0000 (22:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1866810 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFSimpleShape.java

index 89f312327bda8724366c76160c27462847bccd13..64ff9a97668eb880a20c10c36793139c481391e5 100644 (file)
@@ -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;
         }