From c2c62aa5388b3eb58f0b1ed80c72452365c16976 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 2 Sep 2011 18:16:08 -0700 Subject: [PATCH] Stop throwing errors where it can't get the current message because there is no object. --- NzbDrone.Web/Controllers/NotificationController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NzbDrone.Web/Controllers/NotificationController.cs b/NzbDrone.Web/Controllers/NotificationController.cs index 845687089..5477a5459 100644 --- a/NzbDrone.Web/Controllers/NotificationController.cs +++ b/NzbDrone.Web/Controllers/NotificationController.cs @@ -38,7 +38,7 @@ namespace NzbDrone.Web.Controllers { var notes = _notifications.ProgressNotifications; - if (_notifications.ProgressNotifications.Count != 0) + if (_notifications.ProgressNotifications.Count > 0) return _notifications.ProgressNotifications[0].CurrentMessage;