mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
Fixed: Check movie null before trying to use it
This commit is contained in:
parent
67f6eb544a
commit
05f9f6b413
@ -142,7 +142,8 @@ public MappingResult Map(ParsedMovieInfo parsedMovieInfo, string imdbId, SearchC
|
||||
if (parsedMovieInfo.Languages.Contains(Language.Original))
|
||||
{
|
||||
parsedMovieInfo.Languages.Remove(Language.Original);
|
||||
if (!parsedMovieInfo.Languages.Contains(result.Movie.OriginalLanguage) && result.Movie != null)
|
||||
|
||||
if (result.Movie != null && !parsedMovieInfo.Languages.Contains(result.Movie.OriginalLanguage))
|
||||
{
|
||||
parsedMovieInfo.Languages.Add(result.Movie.OriginalLanguage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user