From 6f64c5cb5a90354d1a76b5270378030dc99d325b Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 1 Aug 2018 16:53:48 -0400 Subject: [PATCH] null check --- src/models/response/organizationBillingResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/response/organizationBillingResponse.ts b/src/models/response/organizationBillingResponse.ts index bfc288635b..1cd35e8dc6 100644 --- a/src/models/response/organizationBillingResponse.ts +++ b/src/models/response/organizationBillingResponse.ts @@ -27,6 +27,6 @@ export class OrganizationBillingResponse extends OrganizationResponse { if (response.Charges != null) { this.charges = response.Charges.map((c: any) => new BillingChargeResponse(c)); } - this.expiration = new Date(response.Expiration); + this.expiration = response.Expiration != null ? new Date(response.Expiration) : null; } }