Fixed: Prevent null when no candidate in ParsingService

pull/5356/head
Qstick 4 years ago
parent 67ebf49b21
commit 784913a85b

@ -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)

Loading…
Cancel
Save