1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: Prevent NRE in MovieSearchService

Fixes #3728
This commit is contained in:
Qstick 2019-09-21 16:10:09 -04:00
parent fb8143bb49
commit 5fe8884471

View File

@ -90,7 +90,7 @@ public void Execute(CutoffUnmetMoviesSearchCommand message)
List<Movie> movies = _movieCutoffService.MoviesWhereCutoffUnmet(pagingSpec).Records.ToList(); List<Movie> 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(); var missing = movies.Where(e => !queue.Contains(e.Id)).ToList();
SearchForMissingMovies(missing, message.Trigger == CommandTrigger.Manual); SearchForMissingMovies(missing, message.Trigger == CommandTrigger.Manual);