mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Null Pointer
This commit is contained in:
parent
a57b99bffd
commit
fe3e22be98
@ -129,6 +129,11 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Movies
|
|||||||
.GetMovieAsync(Convert.ToInt32(tmdbId, CultureInfo.InvariantCulture), info.MetadataLanguage, TmdbUtils.GetImageLanguagesParam(info.MetadataLanguage), cancellationToken)
|
.GetMovieAsync(Convert.ToInt32(tmdbId, CultureInfo.InvariantCulture), info.MetadataLanguage, TmdbUtils.GetImageLanguagesParam(info.MetadataLanguage), cancellationToken)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
|
if (movieResult == null)
|
||||||
|
{
|
||||||
|
return new MetadataResult<Movie>();
|
||||||
|
}
|
||||||
|
|
||||||
var movie = new Movie
|
var movie = new Movie
|
||||||
{
|
{
|
||||||
Name = movieResult.Title ?? movieResult.OriginalTitle,
|
Name = movieResult.Title ?? movieResult.OriginalTitle,
|
||||||
@ -266,7 +271,6 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.Movies
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (movieResult.Videos?.Results != null)
|
if (movieResult.Videos?.Results != null)
|
||||||
{
|
{
|
||||||
var trailers = new List<MediaUrl>();
|
var trailers = new List<MediaUrl>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user