From f024c0a7208e379a82f0ab51a71a123f9bb2a2bb Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Tue, 16 Oct 2018 10:28:07 +0300 Subject: [PATCH] Adding column data to tooltip event could cause NPE gitlab #146 Change-Id: I4ce48cc851638fd5cd38bab77763fdfec9c48ed9 --- .../org/simantics/browsing/ui/swt/GraphExplorerToolTip.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 0cc2e71a8..ba42e5892 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 @@ -57,7 +57,9 @@ public class GraphExplorerToolTip extends ToolTip { } x+=w; } - event.data = column.getData(); + if (column != null) + event.data = column.getData(); + GENodeQueryManager manager = new GENodeQueryManager(explorerContext, null, null, TreeItemReference.create(treeItem.getParentItem())); nodeContext = (NodeContext) treeItem.getData(); if (nodeContext != null) -- 2.47.1