mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
null checks
This commit is contained in:
parent
07d57ebe8c
commit
a0632bcac2
1 changed files with 8 additions and 0 deletions
|
@ -60,6 +60,10 @@ namespace Bit.App.Pages
|
|||
|
||||
public async Task<bool> SubmitAsync()
|
||||
{
|
||||
if(Folder == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(Xamarin.Essentials.Connectivity.NetworkAccess == Xamarin.Essentials.NetworkAccess.None)
|
||||
{
|
||||
await _platformUtilsService.ShowDialogAsync(AppResources.InternetConnectionRequiredMessage,
|
||||
|
@ -96,6 +100,10 @@ namespace Bit.App.Pages
|
|||
|
||||
public async Task<bool> DeleteAsync()
|
||||
{
|
||||
if(Folder == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if(Xamarin.Essentials.Connectivity.NetworkAccess == Xamarin.Essentials.NetworkAccess.None)
|
||||
{
|
||||
await _platformUtilsService.ShowDialogAsync(AppResources.InternetConnectionRequiredMessage,
|
||||
|
|
Loading…
Reference in a new issue