mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-07 08:04:29 +01:00
Fix possible NRE
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user