From 5fe8884471b88be43d635184f122dbf442dedd70 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 21 Sep 2019 16:10:09 -0400 Subject: [PATCH] Fixed: Prevent NRE in MovieSearchService Fixes #3728 --- src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs b/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs index 90e6b94ee..64f7ddacf 100644 --- a/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs +++ b/src/NzbDrone.Core/IndexerSearch/MoviesSearchService.cs @@ -90,7 +90,7 @@ public void Execute(CutoffUnmetMoviesSearchCommand message) List movies = _movieCutoffService.MoviesWhereCutoffUnmet(pagingSpec).Records.ToList(); - var queue = _queueService.GetQueue().Select(q => q.Movie.Id); + var queue = _queueService.GetQueue().Where(q => q.Movie != null).Select(q => q.Movie.Id); var missing = movies.Where(e => !queue.Contains(e.Id)).ToList(); SearchForMissingMovies(missing, message.Trigger == CommandTrigger.Manual);