mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Fix NRE if invoice not found
This commit is contained in:
@@ -70,7 +70,7 @@ namespace BTCPayServer.Controllers.GreenField
|
|||||||
}
|
}
|
||||||
|
|
||||||
var invoice = await _invoiceRepository.GetInvoice(invoiceId, true);
|
var invoice = await _invoiceRepository.GetInvoice(invoiceId, true);
|
||||||
if (invoice.StoreId != store.Id)
|
if (invoice?.StoreId != store.Id)
|
||||||
{
|
{
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user