Fixed error when downloading a movie.

This commit is contained in:
Leonardo Galli
2017-03-27 17:07:23 +02:00
parent 79307d3c25
commit 499e46e10a
2 changed files with 28 additions and 24 deletions

View File

@@ -426,7 +426,7 @@ namespace NzbDrone.Core.Parser
movie = _movieService.FindByImdbId(imdbId);
//Should fix practically all problems, where indexer is shite at adding correct imdbids to movies.
if (parsedMovieInfo.Year > 1800 && parsedMovieInfo.Year != movie.Year)
if (movie != null && parsedMovieInfo.Year > 1800 && parsedMovieInfo.Year != movie.Year)
{
movie = null;
}