From ccc1271c9d6657fb9dcf4cf3cb115fa0c8cb9589 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Thu, 25 Aug 2016 12:39:18 +0300 Subject: [PATCH] Fetched r33145 from svn. refs #6475 --- .../src/org/simantics/browsing/ui/swt/GraphExplorerToolTip.java | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.47.1