mirror of
https://github.com/bitwarden/mobile
synced 2025-12-14 15:23:35 +00:00
null check on field ctor
This commit is contained in:
@@ -10,8 +10,8 @@ namespace Bit.App.Models
|
|||||||
public Field(FieldDataModel model)
|
public Field(FieldDataModel model)
|
||||||
{
|
{
|
||||||
Type = model.Type;
|
Type = model.Type;
|
||||||
Name = new CipherString(model.Name);
|
Name = model.Name != null ? new CipherString(model.Name) : null;
|
||||||
Value = new CipherString(model.Value);
|
Value = model.Value != null ? new CipherString(model.Value) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FieldType Type { get; set; }
|
public FieldType Type { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user