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

Commit

Permalink
Adds more logging in to handle unexpected null cases getting pad
Browse files Browse the repository at this point in the history
  • Loading branch information
netonjm authored and monojenkins committed Jan 7, 2020
1 parent 88626b9 commit 266de5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main/src/addins/MacPlatform/MainToolbar/StatusBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,12 @@ void ResizeToFit ()

public override void MouseDown (NSEvent theEvent)
{
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ().BringToFront ();
try {
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ()
.BringToFront ();
} catch (Exception ex) {
LoggingService.LogInternalError (ex);
}
}

string INSAccessibilityStaticText.AccessibilityValue {
Expand Down

0 comments on commit 266de5e

Please sign in to comment.