try fix NRE in prism when used with lnbank

This commit is contained in:
Kukks
2023-05-18 13:30:27 +02:00
parent e5e0ec0b70
commit bfe0501500
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
<PropertyGroup>
<Product>LN Prism</Product>
<Description>Automated value splits for lightning.</Description>
<Version>1.0.7</Version>
<Version>1.0.8</Version>
</PropertyGroup>
<!-- Plugin development properties -->
<PropertyGroup>

View File

@@ -140,7 +140,7 @@ namespace BTCPayServer.Plugins.Prism
if (lnClient is not null && proof?.PaymentHash is not null)
{
var p = await lnClient.GetPayment(proof.PaymentHash, CancellationToken);
feePaid = (long) p.Fee.ToUnit(LightMoneyUnit.Satoshi);
feePaid = (long) p?.Fee?.ToUnit(LightMoneyUnit.Satoshi);
}
}