Skip to content

Commit 1d32279

Browse files
committed
Check if message box is null before loggign
1 parent 8e6674a commit 1d32279

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Refresher/UI/PipelineForm.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,12 @@ private void OnLog(RefresherLog log)
505505
{
506506
Application.Instance.Invoke(() =>
507507
{
508+
// somehow getting hit on sentry?
509+
// id REFRESHER-88
510+
// ReSharper disable once ConditionIsAlwaysTrueOrFalseAccordingToNullableAPIContract
511+
if (this._messages == null)
512+
return;
513+
508514
this._messages.Items.Add($"[{log.Level}] [{log.Category}] {log.Content}");
509515

510516
// automatically scroll to the bottom by highlighting the last item temporarily

0 commit comments

Comments
 (0)