mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
null check
This commit is contained in:
@@ -1079,8 +1079,8 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
public int Compare(CipherView a, CipherView b)
|
public int Compare(CipherView a, CipherView b)
|
||||||
{
|
{
|
||||||
var aName = a.Name;
|
var aName = a?.Name;
|
||||||
var bName = b.Name;
|
var bName = b?.Name;
|
||||||
if(aName == null && bName != null)
|
if(aName == null && bName != null)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@@ -218,8 +218,8 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
public int Compare(CollectionView a, CollectionView b)
|
public int Compare(CollectionView a, CollectionView b)
|
||||||
{
|
{
|
||||||
var aName = a.Name;
|
var aName = a?.Name;
|
||||||
var bName = b.Name;
|
var bName = b?.Name;
|
||||||
if(aName == null && bName != null)
|
if(aName == null && bName != null)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
@@ -256,8 +256,8 @@ namespace Bit.Core.Services
|
|||||||
|
|
||||||
public int Compare(FolderView a, FolderView b)
|
public int Compare(FolderView a, FolderView b)
|
||||||
{
|
{
|
||||||
var aName = a.Name;
|
var aName = a?.Name;
|
||||||
var bName = b.Name;
|
var bName = b?.Name;
|
||||||
if(aName == null && bName != null)
|
if(aName == null && bName != null)
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user