fix null ref when no uri

This commit is contained in:
Kyle Spearrin 2018-03-14 17:41:18 -04:00
parent 262c19b194
commit fcb072c37d

View file

@ -10,7 +10,7 @@ namespace Bit.App.Models.Api
public LoginType(Cipher cipher) public LoginType(Cipher cipher)
{ {
Uris = cipher.Login.Uris.Select(u => new LoginUriType(u)); Uris = cipher.Login.Uris?.Select(u => new LoginUriType(u));
Username = cipher.Login.Username?.EncryptedString; Username = cipher.Login.Username?.EncryptedString;
Password = cipher.Login.Password?.EncryptedString; Password = cipher.Login.Password?.EncryptedString;
Totp = cipher.Login.Totp?.EncryptedString; Totp = cipher.Login.Totp?.EncryptedString;