mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
null check
This commit is contained in:
parent
60efcbaf02
commit
6d8af4d97a
@ -1079,8 +1079,8 @@ namespace Bit.Core.Services
|
||||
|
||||
public int Compare(CipherView a, CipherView b)
|
||||
{
|
||||
var aName = a.Name;
|
||||
var bName = b.Name;
|
||||
var aName = a?.Name;
|
||||
var bName = b?.Name;
|
||||
if(aName == null && bName != null)
|
||||
{
|
||||
return -1;
|
||||
|
@ -218,8 +218,8 @@ namespace Bit.Core.Services
|
||||
|
||||
public int Compare(CollectionView a, CollectionView b)
|
||||
{
|
||||
var aName = a.Name;
|
||||
var bName = b.Name;
|
||||
var aName = a?.Name;
|
||||
var bName = b?.Name;
|
||||
if(aName == null && bName != null)
|
||||
{
|
||||
return -1;
|
||||
|
@ -256,8 +256,8 @@ namespace Bit.Core.Services
|
||||
|
||||
public int Compare(FolderView a, FolderView b)
|
||||
{
|
||||
var aName = a.Name;
|
||||
var bName = b.Name;
|
||||
var aName = a?.Name;
|
||||
var bName = b?.Name;
|
||||
if(aName == null && bName != null)
|
||||
{
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user