Fixed: NullRef on RootFolder add from ModelEvent Broadcast

pull/4970/head
Qstick 4 years ago
parent bc4bb772ec
commit 2a84c4737b

@ -42,7 +42,7 @@ namespace Radarr.Api.V3.RootFolders
private RootFolderResource GetRootFolder(int id) private RootFolderResource GetRootFolder(int id)
{ {
var timeout = Request.GetBooleanQueryParameter("timeout", true); var timeout = Context?.Request?.GetBooleanQueryParameter("timeout", true) ?? true;
return _rootFolderService.Get(id, timeout).ToResource(); return _rootFolderService.Get(id, timeout).ToResource();
} }

Loading…
Cancel
Save