mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
Fix possible NRE
This commit is contained in:
parent
e5602a86a2
commit
a40429e219
@ -19,6 +19,8 @@ namespace BTCPayServer.Storage
|
|||||||
public async Task<IActionResult> GetFile(string fileId)
|
public async Task<IActionResult> GetFile(string fileId)
|
||||||
{
|
{
|
||||||
var url = await _FileService.GetFileUrl(Request.GetAbsoluteRootUri(), fileId);
|
var url = await _FileService.GetFileUrl(Request.GetAbsoluteRootUri(), fileId);
|
||||||
|
if (url is null)
|
||||||
|
return NotFound();
|
||||||
return new RedirectResult(url);
|
return new RedirectResult(url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user