From: lehtonen Date: Mon, 25 Oct 2010 11:46:49 +0000 (+0000) Subject: Fixed possible NPE problem. X-Git-Tag: simantics-1.2.1~8 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=4d4252e4fb43c65c4c83e5e88ff4ff2ba62c0c8d;p=simantics%2Fsysdyn.git Fixed possible NPE problem. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18513 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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))); } } };