]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Fixed possible NPE problem.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 25 Oct 2010 11:46:49 +0000 (11:46 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Mon, 25 Oct 2010 11:46:49 +0000 (11:46 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@18513 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/elements2/HoverTextElementNoBounds.java

index 707483705385284e9e1a50ed5d04ef4850bbb3f5..3b59fa809fa0806a9f86b0f2c2c12fd5128d5472 100644 (file)
@@ -180,7 +180,7 @@ public class HoverTextElementNoBounds extends TextElementNoBounds {
                                        IElement e = (IElement)sender;\r
                                        TextNode name = (TextNode) e.getHint(SG_NODE);\r
                                        if(name != null)\r
-                                               name.setHover((Boolean)e.getHint(ElementHints.KEY_HOVER));\r
+                                               name.setHover(Boolean.TRUE.equals(e.getHint(ElementHints.KEY_HOVER)));\r
                                }\r
                        }\r
                };\r