mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2026-01-31 21:45:02 +01:00
try fix NRE in prism when used with lnbank
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user