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

Commit b02d842

Browse files
committed
Only brings ErrorListPad to front in case of be loaded in Workbench
Fixes #941969 - [FATAL] System.NullReferenceException exception in MonoDevelop.MacIntegration.MainToolbar.BuildResultsView.MouseDown()
1 parent 371fdde commit b02d842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/src/addins/MacPlatform/MainToolbar/StatusBar.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ void ResizeToFit ()
242242

243243
public override void MouseDown (NSEvent theEvent)
244244
{
245-
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ().BringToFront ();
245+
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ()?.BringToFront ();
246246
}
247247

248248
string INSAccessibilityStaticText.AccessibilityValue {

0 commit comments

Comments
 (0)