From 1f62194ab8c77f2af07fca5865b23ae9ad30bea5 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Fri, 14 Jun 2013 11:59:06 -0700 Subject: [PATCH] fixed NotInQueueSpecification throwing exceptions when it couldn't parse an item in the queue. --- .../DecisionEngine/Specifications/NotInQueueSpecification.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NzbDrone.Core/DecisionEngine/Specifications/NotInQueueSpecification.cs b/NzbDrone.Core/DecisionEngine/Specifications/NotInQueueSpecification.cs index b4565baf1..79127ab9e 100644 --- a/NzbDrone.Core/DecisionEngine/Specifications/NotInQueueSpecification.cs +++ b/NzbDrone.Core/DecisionEngine/Specifications/NotInQueueSpecification.cs @@ -28,7 +28,7 @@ public bool IsSatisfiedBy(RemoteEpisode subject) { var downloadClient = _downloadClientProvider.GetDownloadClient(); - var queue = downloadClient.GetQueue().Select(q => Parser.Parser.ParseTitle(q.Title)); + var queue = downloadClient.GetQueue().Select(queueItem => Parser.Parser.ParseTitle(queueItem.Title)).Where(episodeInfo => episodeInfo != null); return !IsInQueue(subject, queue); }