]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fetched r33145 from svn.
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 25 Aug 2016 09:39:18 +0000 (12:39 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 25 Aug 2016 09:39:18 +0000 (12:39 +0300)
refs #6475

bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerToolTip.java

index 26e4431038d3b43da160aad78d74b9884ef572fc..71e9dd113a17d7bbcfb43b738a42a37c4d9704d7 100644 (file)
@@ -42,6 +42,8 @@ public class GraphExplorerToolTip extends ToolTip {
     @Override\r
     protected boolean shouldCreateToolTip(Event event) {\r
         TreeItem treeItem = parent.getItem(new Point(event.x, event.y));\r
+        if (treeItem == null)\r
+            return false;\r
         GENodeQueryManager manager = new GENodeQueryManager(explorerContext, null, null, TreeItemReference.create(treeItem.getParentItem()));\r
         nodeContext = (NodeContext) treeItem.getData();\r
         labeler = manager.query(nodeContext, BuiltinKeys.SELECTED_LABELER);\r