Skip to content

Commit 89ff07e

Browse files
committed
Fixed null alert bug
1 parent 6c7562b commit 89ff07e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ClipboardMonitor/ClipboardNotification.NotificationHandlerForm.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ protected override void WndProc(ref Message m)
5656
}
5757

5858
var alert = _scanner.Scan(content);
59+
if (alert == default)
60+
{
61+
return;
62+
}
5963
AlertHandler.Instance.InvokeAlert(alert);
6064
SendNotification(alert.Title + "\n\nThe incident is logged.");
6165
}

0 commit comments

Comments
 (0)