mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 11:50:51 +02:00
Fixed: NullRef on RootFolder add from ModelEvent Broadcast
This commit is contained in:
parent
bc4bb772ec
commit
2a84c4737b
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue