From: Tuukka Lehtonen Date: Thu, 25 Aug 2016 09:39:18 +0000 (+0300) Subject: Fetched r33145 from svn. X-Git-Tag: v1.25.0~156^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=ccc1271c9d6657fb9dcf4cf3cb115fa0c8cb9589;hp=96bb7ef9cbe42d82eb58306d8f9b62392cc29ba8 Fetched r33145 from svn. refs #6475 --- diff --git a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerToolTip.java b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerToolTip.java index 26e443103..71e9dd113 100644 --- a/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerToolTip.java +++ b/bundles/org.simantics.browsing.ui.swt/src/org/simantics/browsing/ui/swt/GraphExplorerToolTip.java @@ -42,6 +42,8 @@ public class GraphExplorerToolTip extends ToolTip { @Override protected boolean shouldCreateToolTip(Event event) { TreeItem treeItem = parent.getItem(new Point(event.x, event.y)); + if (treeItem == null) + return false; GENodeQueryManager manager = new GENodeQueryManager(explorerContext, null, null, TreeItemReference.create(treeItem.getParentItem())); nodeContext = (NodeContext) treeItem.getData(); labeler = manager.query(nodeContext, BuiltinKeys.SELECTED_LABELER);