From d8631188591970d8239cbae2753f3a83e8db5a03 Mon Sep 17 00:00:00 2001 From: Vincent Privat Date: Wed, 8 Aug 2018 00:30:20 +0200 Subject: [PATCH] fix NPE (#28) --- svg-core/src/main/java/com/kitfox/svg/TransformableElement.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }