mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
fix null exception possibility in cp/sickrage cacher classes
This commit is contained in:
parent
25714f03f7
commit
a679f1a6a1
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ namespace PlexRequests.Services.Jobs
|
|||
public int[] QueuedIds()
|
||||
{
|
||||
var movies = Cache.Get<CouchPotatoMovies>(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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue