mirror of https://github.com/Radarr/Radarr
Fixed: Prevent null when no candidate in ParsingService
This commit is contained in:
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
|
// 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);
|
movieByTitleAndOrYear = _movieService.FindByTitle(parsedMovieInfo.MovieTitle, null, arabicTitle, romanTitle, candidates);
|
||||||
if (movieByTitleAndOrYear != null)
|
if (movieByTitleAndOrYear != null)
|
||||||
|
|
Loading…
Reference in New Issue