mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Remove possible NRE in the LightningListener
This commit is contained in:
parent
3b876413c1
commit
177ddb4117
1 changed files with 2 additions and 0 deletions
|
@ -144,6 +144,8 @@ retry:
|
|||
return _memoryCache.GetOrCreateAsync(GetCacheKey(invoiceId), async (cacheEntry) =>
|
||||
{
|
||||
var invoice = await _InvoiceRepository.GetInvoice(invoiceId);
|
||||
if (invoice is null)
|
||||
return null;
|
||||
cacheEntry.AbsoluteExpiration = GetExpiration(invoice);
|
||||
return invoice;
|
||||
})!;
|
||||
|
|
Loading…
Add table
Reference in a new issue