1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Check movie null before trying to use it

This commit is contained in:
Qstick 2021-05-23 21:26:01 -04:00
parent 67f6eb544a
commit 05f9f6b413

View File

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