1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-23 00:12:44 +00:00

Fixed: Prevent null when no candidate in ParsingService

This commit is contained in:
Qstick 2020-11-15 00:12:53 -05:00
parent 67ebf49b21
commit 784913a85b

View file

@ -214,7 +214,7 @@ private bool TryGetMovieByTitleAndOrYear(ParsedMovieInfo parsedMovieInfo, out Ma
}
// Only default to not using year when one is parsed if only one movie candidate exists
if (candidates.Count == 1)
if (candidates != null && candidates.Count == 1)
{
movieByTitleAndOrYear = _movieService.FindByTitle(parsedMovieInfo.MovieTitle, null, arabicTitle, romanTitle, candidates);
if (movieByTitleAndOrYear != null)