diff --git a/PlexRequests.Services/Jobs/CouchPotatoCacher.cs b/PlexRequests.Services/Jobs/CouchPotatoCacher.cs index 6b905a9b3..3fb831b12 100644 --- a/PlexRequests.Services/Jobs/CouchPotatoCacher.cs +++ b/PlexRequests.Services/Jobs/CouchPotatoCacher.cs @@ -87,7 +87,7 @@ namespace PlexRequests.Services.Jobs public int[] QueuedIds() { var movies = Cache.Get(CacheKeys.CouchPotatoQueued); - return movies?.movies.Select(x => x.info.tmdb_id).ToArray() ?? new int[] { }; + return movies?.movies?.Select(x => x.info.tmdb_id).ToArray() ?? new int[] { }; } public void Execute(IJobExecutionContext context) diff --git a/PlexRequests.Services/Jobs/SickRageCacher.cs b/PlexRequests.Services/Jobs/SickRageCacher.cs index 69b50b358..cece5100d 100644 --- a/PlexRequests.Services/Jobs/SickRageCacher.cs +++ b/PlexRequests.Services/Jobs/SickRageCacher.cs @@ -87,7 +87,7 @@ namespace PlexRequests.Services.Jobs public int[] QueuedIds() { var tv = Cache.Get(CacheKeys.SickRageQueued); - return tv?.data.Values.Select(x => x.tvdbid).ToArray() ?? new int[] { }; + return tv?.data?.Values.Select(x => x.tvdbid).ToArray() ?? new int[] { }; } public void Execute(IJobExecutionContext context)