From 4d4252e4fb43c65c4c83e5e88ff4ff2ba62c0c8d Mon Sep 17 00:00:00 2001 From: lehtonen Date: Mon, 25 Oct 2010 11:46:49 +0000 Subject: [PATCH] Fixed possible NPE problem. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18513 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/ui/elements2/HoverTextElementNoBounds.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/HoverTextElementNoBounds.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/HoverTextElementNoBounds.java index 70748370..3b59fa80 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/HoverTextElementNoBounds.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/HoverTextElementNoBounds.java @@ -180,7 +180,7 @@ public class HoverTextElementNoBounds extends TextElementNoBounds { IElement e = (IElement)sender; TextNode name = (TextNode) e.getHint(SG_NODE); if(name != null) - name.setHover((Boolean)e.getHint(ElementHints.KEY_HOVER)); + name.setHover(Boolean.TRUE.equals(e.getHint(ElementHints.KEY_HOVER))); } } }; -- 2.47.1