Skip to content

Commit d863118

Browse files
don-vipblackears
authored andcommitted
fix NPE (#28)
1 parent faba377 commit d863118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

svg-core/src/main/java/com/kitfox/svg/TransformableElement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected Shape shapeToParent(Shape shape)
110110

111111
protected Rectangle2D boundsToParent(Rectangle2D rect)
112112
{
113-
if (xform == null)
113+
if (xform == null || rect == null)
114114
{
115115
return rect;
116116
}

0 commit comments

Comments
 (0)