Our website uses cookies to enhance your browsing experience.
Accept
to the top
>
>
>
Examples of errors detected by the...

Examples of errors detected by the V3168 diagnostic

V3168. Awaiting on expression with potential null value can lead to throwing of 'NullReferenceException'.


BTCPay Server

V3168 Awaiting on expression with potential null value can lead to NullReferenceException. InvoiceWatcher.cs 383


private async Task<bool> UpdateConfirmationCount(InvoiceEntity invoice)
{
    ....
    var transactionResult = await _explorerClientProvider.GetExplorerClient(
        payment.GetCryptoCode())?.GetTransactionAsync(....);
    ....
}