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:
parent
67ebf49b21
commit
784913a85b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue