mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-17 10:45:49 +02:00
Ensure request exists before trying to get query parameters
Fixes #2379
This commit is contained in:
parent
a023732c1c
commit
aa2174b43c
@ -87,7 +87,7 @@ namespace NzbDrone.Api.Series
|
||||
|
||||
private SeriesResource GetSeries(int id)
|
||||
{
|
||||
var includeSeasonImages = Request != null && Request.GetBooleanQueryParameter("includeSeasonImages");
|
||||
var includeSeasonImages = Context != null && Request.GetBooleanQueryParameter("includeSeasonImages");
|
||||
|
||||
var series = _seriesService.GetSeries(id);
|
||||
return MapToResource(series, includeSeasonImages);
|
||||
|
Loading…
x
Reference in New Issue
Block a user