From 0dfcbb0913541f303cb44dd495443f0ef5b66eab Mon Sep 17 00:00:00 2001 From: niemisto Date: Mon, 25 Jan 2010 15:30:00 +0000 Subject: [PATCH] fixing npe if shape is null git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@13629 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/h2d/node/FilledShapeNode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.simantics.h2d/src/org/simantics/h2d/node/FilledShapeNode.java b/org.simantics.h2d/src/org/simantics/h2d/node/FilledShapeNode.java index e3d33667..1bf08a38 100644 --- a/org.simantics.h2d/src/org/simantics/h2d/node/FilledShapeNode.java +++ b/org.simantics.h2d/src/org/simantics/h2d/node/FilledShapeNode.java @@ -34,6 +34,8 @@ public class FilledShapeNode extends G2DNode { @Override public Rectangle2D getBoundsInLocal() { + if(shape == null) + return null; return shape.getBounds2D(); } -- 2.47.1