1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 17:53:44 +00:00

Prevent NRE for missing upcoming invoice when sub is pending cancelation (#3920)

This commit is contained in:
Alex Morask
2024-04-02 09:28:57 -04:00
committed by GitHub
parent b9049cd699
commit a39a498790

View File

@@ -126,8 +126,14 @@ public class OrganizationSubscriptionResponseModel : OrganizationResponseModel
if (hideSensitiveData) if (hideSensitiveData)
{ {
BillingEmail = null; BillingEmail = null;
Subscription.Items = null; if (Subscription != null)
UpcomingInvoice.Amount = null; {
Subscription.Items = null;
}
if (UpcomingInvoice != null)
{
UpcomingInvoice.Amount = null;
}
} }
} }