X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.swt%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fswt%2FGraphExplorerToolTip.java;h=1debee624e803ae51d95622c6c983c041fc16872;hp=71e9dd113a17d7bbcfb43b738a42a37c4d9704d7;hb=12468c2b3d87f61123d6429a7329d80316009fe6;hpb=a3717830e446a0a2e4bde5c567c780bae9c36188 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 71e9dd113..1debee624 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 @@ -46,7 +46,8 @@ public class GraphExplorerToolTip extends ToolTip { return false; GENodeQueryManager manager = new GENodeQueryManager(explorerContext, null, null, TreeItemReference.create(treeItem.getParentItem())); nodeContext = (NodeContext) treeItem.getData(); - labeler = manager.query(nodeContext, BuiltinKeys.SELECTED_LABELER); + if (nodeContext != null) + labeler = manager.query(nodeContext, BuiltinKeys.SELECTED_LABELER); if (nodeContext == null || !(labeler instanceof LabelerStub)) return false; return ((LabelerStub) labeler).shouldCreateToolTip(event, nodeContext);