mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
null check on field ctor
This commit is contained in:
parent
daa2ca876b
commit
faaa0b2488
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user