diff --git a/svg-core/src/main/java/com/kitfox/svg/TransformableElement.java b/svg-core/src/main/java/com/kitfox/svg/TransformableElement.java index d900340..a05f1c4 100644 --- a/svg-core/src/main/java/com/kitfox/svg/TransformableElement.java +++ b/svg-core/src/main/java/com/kitfox/svg/TransformableElement.java @@ -110,7 +110,7 @@ protected Shape shapeToParent(Shape shape) protected Rectangle2D boundsToParent(Rectangle2D rect) { - if (xform == null) + if (xform == null || rect == null) { return rect; }