mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
Fix NRE error in PoS report
This commit is contained in:
parent
08e21c1a5d
commit
05b01a13c8
@ -78,8 +78,8 @@ public class ProductsReportProvider : ReportProvider
|
||||
}
|
||||
else
|
||||
{
|
||||
var posData = i.Metadata.PosData?.ToObject<PosAppData>();
|
||||
if (posData.Cart is { } cart)
|
||||
var posData = i.Metadata?.PosData?.ToObject<PosAppData>();
|
||||
if (posData?.Cart is { } cart)
|
||||
{
|
||||
foreach (var item in cart)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user