1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-14 15:23:35 +00:00

null checks

This commit is contained in:
Kyle Spearrin
2019-05-09 17:27:43 -04:00
parent 3bd01067e3
commit a535e8a82b
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ namespace Bit.Core.Models.Domain
OrganizationUseTotp = obj.OrganizationUseTotp;
Edit = obj.Edit;
RevisionDate = obj.RevisionDate;
CollectionIds = new HashSet<string>(obj.CollectionIds);
CollectionIds = obj.CollectionIds != null ? new HashSet<string>(obj.CollectionIds) : null;
LocalData = localData;
switch(Type)