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

Commit c5dba20

Browse files
committed
Adds more logging in to handle unexpected null cases getting pad
1 parent dddd6d4 commit c5dba20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,12 @@ void ResizeToFit ()
243243

244244
public override void MouseDown (NSEvent theEvent)
245245
{
246-
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ().BringToFront ();
246+
try {
247+
IdeApp.Workbench.GetPad<MonoDevelop.Ide.Gui.Pads.ErrorListPad> ()
248+
.BringToFront ();
249+
} catch (Exception ex) {
250+
LoggingService.LogInternalError (ex);
251+
}
247252
}
248253

249254
string INSAccessibilityStaticText.AccessibilityValue {

0 commit comments

Comments
 (0)