#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
This commit is contained in:
Andreas Beeker 2019-09-11 22:02:14 +00:00
parent 8f051a0b88
commit 7e432a3211
1 changed files with 1 additions and 1 deletions

View 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;
}