return empty array when obtaining queued IDs in sickrage cacher

This commit is contained in:
Drewster727 2016-04-14 16:13:56 -05:00
parent 256cfbc80f
commit 770b447d5d

View file

@ -72,8 +72,7 @@ namespace PlexRequests.Services
public int[] QueuedIds()
{
var tv = Cache.Get<SickrageShows>(CacheKeys.SickRageQueued);
var values = tv?.data.Values.Select(x => x.tvdbid).ToArray();
return values;
return tv?.data.Values.Select(x => x.tvdbid).ToArray() ?? new int[] { };
}
}
}