1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-05 15:47:20 +02: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)