From 174ac313eaf839c68845c60f1f228355a74598ed Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 14 Jan 2017 11:20:02 -0500 Subject: [PATCH] fix null ref --- src/Api/Models/Response/DomainsResponseModel.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Api/Models/Response/DomainsResponseModel.cs b/src/Api/Models/Response/DomainsResponseModel.cs index aaadee509..60404e3a2 100644 --- a/src/Api/Models/Response/DomainsResponseModel.cs +++ b/src/Api/Models/Response/DomainsResponseModel.cs @@ -21,7 +21,8 @@ namespace Bit.Api.Models JsonConvert.DeserializeObject>>(user.EquivalentDomains) : null; var excludedGlobalEquivalentDomains = user.ExcludedGlobalEquivalentDomains != null ? - JsonConvert.DeserializeObject>(user.ExcludedGlobalEquivalentDomains) : null; + JsonConvert.DeserializeObject>(user.ExcludedGlobalEquivalentDomains) : + new List(); var globalDomains = new List(); var domainsToInclude = excluded ? Core.Utilities.EquivalentDomains.Global : Core.Utilities.EquivalentDomains.Global.Where(d => !excludedGlobalEquivalentDomains.Contains(d.Key));