1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-26 01:27:00 +00:00

Stop throwing errors where it can't get the current message because there is no object.

This commit is contained in:
Mark McDowall 2011-09-02 18:16:08 -07:00
parent 6756eb6534
commit c2c62aa538

View file

@ -38,7 +38,7 @@ private string GetCurrentMessage()
{ {
var notes = _notifications.ProgressNotifications; var notes = _notifications.ProgressNotifications;
if (_notifications.ProgressNotifications.Count != 0) if (_notifications.ProgressNotifications.Count > 0)
return _notifications.ProgressNotifications[0].CurrentMessage; return _notifications.ProgressNotifications[0].CurrentMessage;