1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-13 23:03:23 +00:00

null check apiexception error

This commit is contained in:
Kyle Spearrin
2019-10-22 16:37:40 -04:00
parent e1983a7d66
commit b354986199
14 changed files with 86 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Bit.App.Resources;
@@ -191,7 +191,10 @@ namespace Bit.iOS.Core.Controllers
}
catch(ApiException e)
{
DisplayAlert(AppResources.AnErrorHasOccurred, e.Error.GetSingleMessage(), AppResources.Ok);
if(e?.Error != null)
{
DisplayAlert(AppResources.AnErrorHasOccurred, e.Error.GetSingleMessage(), AppResources.Ok);
}
}
}