From faaa0b2488d96dc3e1152d5fcee9c46fe82fe3ea Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 28 Nov 2017 13:39:31 -0500 Subject: [PATCH] null check on field ctor --- src/App/Models/Field.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App/Models/Field.cs b/src/App/Models/Field.cs index 9de157b72..83e99a952 100644 --- a/src/App/Models/Field.cs +++ b/src/App/Models/Field.cs @@ -10,8 +10,8 @@ namespace Bit.App.Models public Field(FieldDataModel model) { Type = model.Type; - Name = new CipherString(model.Name); - Value = new CipherString(model.Value); + Name = model.Name != null ? new CipherString(model.Name) : null; + Value = model.Value != null ? new CipherString(model.Value) : null; } public FieldType Type { get; set; }