From: Marko Luukkainen Date: Tue, 16 Oct 2018 07:28:07 +0000 (+0300) Subject: Adding column data to tooltip event could cause NPE X-Git-Tag: v1.43.0~136^2~330 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F14%2F2314%2F1;p=simantics%2Fplatform.git Adding column data to tooltip event could cause NPE gitlab #146 Change-Id: I4ce48cc851638fd5cd38bab77763fdfec9c48ed9 (cherry picked from commit f024c0a7208e379a82f0ab51a71a123f9bb2a2bb) --- 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)