mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
Cipher.Login null check
This commit is contained in:
parent
f0893ca214
commit
f8fa867154
1 changed files with 7 additions and 4 deletions
|
@ -382,11 +382,14 @@ namespace Bit.App.Pages
|
||||||
}
|
}
|
||||||
|
|
||||||
Cipher.Fields = Fields.Any() ? Fields.Select(f => f.Field).ToList() : null;
|
Cipher.Fields = Fields.Any() ? Fields.Select(f => f.Field).ToList() : null;
|
||||||
Cipher.Login.Uris = Uris.ToList();
|
if(Cipher.Login != null)
|
||||||
if(!EditMode && Cipher.Type == CipherType.Login && (Cipher.Login.Uris?.Count ?? 0) == 1 &&
|
|
||||||
string.IsNullOrWhiteSpace(Cipher.Login.Uris.First().Uri))
|
|
||||||
{
|
{
|
||||||
Cipher.Login.Uris = null;
|
Cipher.Login.Uris = Uris.ToList();
|
||||||
|
if(!EditMode && Cipher.Type == CipherType.Login && (Cipher.Login.Uris?.Count ?? 0) == 1 &&
|
||||||
|
string.IsNullOrWhiteSpace(Cipher.Login.Uris.First().Uri))
|
||||||
|
{
|
||||||
|
Cipher.Login.Uris = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!EditMode && Cipher.OrganizationId != null)
|
if(!EditMode && Cipher.OrganizationId != null)
|
||||||
|
|
Loading…
Reference in a new issue