1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Error in logs when creating a new root folder

This commit is contained in:
Mark McDowall 2020-09-07 17:32:59 -07:00
parent 9ffc291fcf
commit 4cadf1d43b
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ FolderWritableValidator folderWritableValidator
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();
} }