From ec505b8c5508e4c8f6191c946b042a804c73c501 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 26 Jun 2018 22:52:12 -0400 Subject: [PATCH] data is never null --- src/models/response/listResponse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/response/listResponse.ts b/src/models/response/listResponse.ts index d879e0f53f..b6cfdf5feb 100644 --- a/src/models/response/listResponse.ts +++ b/src/models/response/listResponse.ts @@ -3,7 +3,7 @@ export class ListResponse { continuationToken: string; constructor(response: any, t: new (dataResponse: any) => T) { - this.data = response.Data.map((dr: any) => new t(dr)); + this.data = response.Data == null ? [] : response.Data.map((dr: any) => new t(dr)); this.continuationToken = response.ContinuationToken; } }