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

Commit

Permalink
Only brings ErrorListPad to front in case of be loaded in Workbench
Browse files Browse the repository at this point in the history
Fixes #941969 - [FATAL] System.NullReferenceException exception in MonoDevelop.MacIntegration.MainToolbar.BuildResultsView.MouseDown()
  • Loading branch information
netonjm committed Oct 28, 2019
1 parent 371fdde commit b02d842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/src/addins/MacPlatform/MainToolbar/StatusBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void ResizeToFit ()

public override void MouseDown (NSEvent theEvent)
{
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ().BringToFront ();
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ()?.BringToFront ();
}

string INSAccessibilityStaticText.AccessibilityValue {
Expand Down

0 comments on commit b02d842

Please sign in to comment.