Fix possible NRE

This commit is contained in:
nicolas.dorier 2022-05-02 09:43:55 +09:00
parent e5602a86a2
commit a40429e219
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -19,6 +19,8 @@ namespace BTCPayServer.Storage
public async Task<IActionResult> GetFile(string fileId)
{
var url = await _FileService.GetFileUrl(Request.GetAbsoluteRootUri(), fileId);
if (url is null)
return NotFound();
return new RedirectResult(url);
}
}