mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
Fixed: Avoid NullRef in MapMovieToTmdbMovie
This commit is contained in:
parent
1db690ad39
commit
e89b98d0f6
@ -337,7 +337,7 @@ public MovieMetadata MapMovieToTmdbMovie(MovieMetadata movie)
|
|||||||
yearStr = $" {movie.Year}";
|
yearStr = $" {movie.Year}";
|
||||||
}
|
}
|
||||||
|
|
||||||
newMovie = SearchForNewMovie(movie.Title + yearStr).FirstOrDefault().MovieMetadata;
|
newMovie = SearchForNewMovie(movie.Title + yearStr).FirstOrDefault()?.MovieMetadata ?? null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newMovie == null)
|
if (newMovie == null)
|
||||||
|
Loading…
Reference in New Issue
Block a user