mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
Some better null object handling #731
This commit is contained in:
parent
4e60b4afda
commit
2a56bd2648
3 changed files with 18 additions and 20 deletions
|
@ -147,7 +147,10 @@ namespace PlexRequests.Services.Jobs
|
|||
|
||||
var imdbId = PlexHelper.GetProviderIdFromPlexGuid(plexGUID);
|
||||
var info = _movieApi.GetMovieInformation(imdbId).Result;
|
||||
|
||||
if (info == null)
|
||||
{
|
||||
throw new Exception($"Movie with Imdb id {imdbId} returned null from the MovieApi");
|
||||
}
|
||||
AddImageInsideTable(sb, $"https://image.tmdb.org/t/p/w500{info.BackdropPath}");
|
||||
|
||||
sb.Append("<tr>");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue