mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix possible NRE
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user