another potential issue? :/

pull/1529/head
tidusjar 7 years ago
parent 764ef17725
commit 9f82281744

@ -165,7 +165,7 @@ namespace Ombi.Schedule.Jobs.Plex
}
if (content.viewGroup.Equals(Jobs.PlexContentCacher.PlexMediaType.Movie.ToString(), StringComparison.CurrentCultureIgnoreCase))
{
foreach (var movie in content.Metadata)
foreach (var movie in content?.Metadata ?? new Metadata[]{})
{
// Let's check if we have this movie
var existing = await Repo.GetByKey(movie.ratingKey);

Loading…
Cancel
Save