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
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ namespace NzbDrone.Core.Parser
}
// 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)