1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-09 04:22:30 +01:00

Fixed: NullRef on RootFolder add from ModelEvent Broadcast

This commit is contained in:
Qstick 2020-09-07 21:39:29 -04:00
parent bc4bb772ec
commit 2a84c4737b

View File

@ -42,7 +42,7 @@ public RootFolderModule(IRootFolderService rootFolderService,
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();
}