mirror of
https://github.com/bitwarden/server.git
synced 2025-05-28 23:04:50 -05:00
Prevent NRE for missing upcoming invoice when sub is pending cancelation (#3920)
This commit is contained in:
parent
b9049cd699
commit
a39a498790
@ -126,8 +126,14 @@ public class OrganizationSubscriptionResponseModel : OrganizationResponseModel
|
||||
if (hideSensitiveData)
|
||||
{
|
||||
BillingEmail = null;
|
||||
Subscription.Items = null;
|
||||
UpcomingInvoice.Amount = null;
|
||||
if (Subscription != null)
|
||||
{
|
||||
Subscription.Items = null;
|
||||
}
|
||||
if (UpcomingInvoice != null)
|
||||
{
|
||||
UpcomingInvoice.Amount = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user