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

Commit 7ed31b9

Browse files
CommandManager: Add missing null check
Fixes issue where Start Window couldn't open projects. Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1017605
1 parent 1705af0 commit 7ed31b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,7 @@ Gtk.Widget GetFocusedChild (Control widget)
24392439
}
24402440
} while (container != null);
24412441

2442-
return widget.nativeWidget is Gtk.Widget ? widget : null;
2442+
return widget?.nativeWidget is Gtk.Widget ? widget : null;
24432443
}
24442444

24452445
#if MAC

0 commit comments

Comments
 (0)