mirror of
https://github.com/apache/poi.git
synced 2025-02-06 10:08:17 +00:00
#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:
parent
8f051a0b88
commit
7e432a3211
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user