Merge remote-tracking branch 'origin/svn' commit 'ccc1271c9d6657fb9dcf4cf3cb115fa0c8c...
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 25 Aug 2016 09:41:01 +0000 (12:41 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 25 Aug 2016 09:41:29 +0000 (12:41 +0300)
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