Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <jestedfa@microsoft.com>2019-11-05 23:26:27 +0300
committerJeffrey Stedfast <jestedfa@microsoft.com>2019-11-05 23:26:27 +0300
commit15482d1b0b24082aeb3428ce803ddca42f33ef30 (patch)
tree114e2c3ed6061d3111e9226aa3b84a42b7339e41
parentf284ff91fcd718ede42a33709b11ea3d5c8011fc (diff)
[Debugger] Explicitly check cocoaView.VisualElement.Windows != null
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1002160/ (I hope)
-rw-r--r--main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/QuickInfo/DebuggerQuickInfoSource.cs2
1 files changed, 1 insertions, 1 deletions
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 f8b9d63283..78a482c692 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
@@ -177,7 +177,7 @@ namespace MonoDevelop.Debugger.VSTextView.QuickInfo
var bounds = view.TextViewLines.GetCharacterBounds (point);
var rect = new CoreGraphics.CGRect (bounds.Left - view.ViewportLeft, bounds.Top - view.ViewportTop, bounds.Width, bounds.Height);
- if (cocoaView.IsClosed) {
+ if (cocoaView.IsClosed || cocoaView.VisualElement.Window == null) {
LoggingService.LogWarning ("Editor window has been closed before debugger tooltip was shown. How did this happen?");
return;
}