Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 380cef8

Browse files
sandyarmstrongmonojenkins
authored andcommitted
[Debugger] Prevent NREs when allowPinning=false
1 parent 91d8ecf commit 380cef8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacObjectValueTreeView.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,11 @@ public bool AllowWatchExpressions {
191191
public PinnedWatch PinnedWatch {
192192
get => pinnedWatch;
193193
set {
194-
if (pinnedWatch != value) {
194+
if (pinnedWatch != value && pinColumn != null) {
195195
pinnedWatch = value;
196196
Runtime.RunInMainThread (() => {
197+
if (pinColumn == null)
198+
return;
197199
if (value == null) {
198200
pinColumn.MinWidth = pinColumn.MaxWidth = pinColumn.Width = MacDebuggerObjectPinView.MinWidth;
199201
} else {

0 commit comments

Comments
 (0)