From 6bc5955c3b4ed80cece3b24ceb96f32bbd318ff8 Mon Sep 17 00:00:00 2001 From: lempinen Date: Mon, 2 Aug 2010 13:26:21 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16905 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../src/org/simantics/sysdyn/ui/elements2/ValveFactory.java | 3 +++ org.simantics.sysdyn/build.properties | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java index d231adbd..a9774e5c 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/ValveFactory.java @@ -135,6 +135,9 @@ public class ValveFactory extends SysdynElementFactory { public void hintChanged(IHintObservable sender, Key key, Object oldValue, Object newValue) { IElement e = (IElement)sender; HoverShapeNode shape = (HoverShapeNode) e.getHint(NODE); + if(shape == null) { + return; + } boolean hover = ElementUtils.isHovering(e); shape.setHover(hover); } diff --git a/org.simantics.sysdyn/build.properties b/org.simantics.sysdyn/build.properties index b088bf18..886d03ee 100644 --- a/org.simantics.sysdyn/build.properties +++ b/org.simantics.sysdyn/build.properties @@ -12,4 +12,5 @@ source.. = src/ output.. = bin/ bin.includes = META-INF/,\ - . + .,\ + adapters.xml -- 2.47.1