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:
parent
bc4bb772ec
commit
2a84c4737b
@ -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 New Issue
Block a user