Merge pull request #4545 from BaronGreenback/17.0RC0---Fix1

[Fix] Null Pointer in TmdbMovieProvider
This commit is contained in:
Joshua M. Boniface 2020-11-22 13:49:58 -05:00 committed by GitHub
commit 3442dbbaf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,6 +129,11 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Movies
.GetMovieAsync(Convert.ToInt32(tmdbId, CultureInfo.InvariantCulture), info.MetadataLanguage, TmdbUtils.GetImageLanguagesParam(info.MetadataLanguage), cancellationToken)
.ConfigureAwait(false);
if (movieResult == null)
{
return new MetadataResult<Movie>();
}
var movie = new Movie
{
Name = movieResult.Title ?? movieResult.OriginalTitle,
@ -266,7 +271,6 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Movies
}
}
if (movieResult.Videos?.Results != null)
{
var trailers = new List<MediaUrl>();