Ensure request exists before trying to get query parameters
This commit is contained in:
parent
ea54b10bf7
commit
90f9dce44a
|
@ -87,7 +87,7 @@ namespace NzbDrone.Api.Series
|
|||
|
||||
private SeriesResource GetSeries(int id)
|
||||
{
|
||||
var includeSeasonImages = Request.GetBooleanQueryParameter("includeSeasonImages");
|
||||
var includeSeasonImages = Request != null && Request.GetBooleanQueryParameter("includeSeasonImages");
|
||||
|
||||
var series = _seriesService.GetSeries(id);
|
||||
return MapToResource(series, includeSeasonImages);
|
||||
|
|
Loading…
Reference in New Issue