From 2df0fb1a51fe189b00f527c55d79473bf6813612 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 20 Nov 2019 14:21:21 -0500 Subject: [PATCH] [Debugger] Don't evaluate null expressions in the tooltip logic Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1020556 --- .../QuickInfo/DebuggerQuickInfoSource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/QuickInfo/DebuggerQuickInfoSource.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/QuickInfo/DebuggerQuickInfoSource.cs index a75f91f7aaf..8835fe7e304 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/QuickInfo/DebuggerQuickInfoSource.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/QuickInfo/DebuggerQuickInfoSource.cs @@ -110,7 +110,7 @@ public async Task GetQuickInfoItemAsync (IAsyncQuickInfoSession s debugInfo = await debugInfoProvider.Value.GetDebugInfoAsync (point, cancellationToken); } - if (!debugInfo.IsDefault) { + if (!debugInfo.IsDefault && debugInfo.Text != null) { await EvaluateAndShowTooltipAsync (session, view, point, debugInfo, cancellationToken); return null; }