1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-16 08:13:20 +00:00

[PM-868] Re-open app to item could crash the app (#2813)

* [PM-868] Check for previous page before loading vault. Remove exception throw.

* [PM-868] Continue to throw exceptions
This commit is contained in:
André Bispo
2023-10-04 15:48:04 +01:00
committed by GitHub
parent 71731bb9b7
commit b23f29511c
2 changed files with 21 additions and 14 deletions

View File

@@ -129,6 +129,8 @@ namespace Bit.App.Pages
}); });
await LoadOnAppearedAsync(_mainLayout, false, async () => await LoadOnAppearedAsync(_mainLayout, false, async () =>
{
if (_previousPage == null)
{ {
if (!_syncService.SyncInProgress || (await _cipherService.GetAllAsync()).Any()) if (!_syncService.SyncInProgress || (await _cipherService.GetAllAsync()).Any())
{ {
@@ -150,6 +152,7 @@ namespace Bit.App.Pages
await _vm.LoadAsync(); await _vm.LoadAsync();
} }
} }
}
await ShowPreviousPageAsync(); await ShowPreviousPageAsync();
AdjustToolbar(); AdjustToolbar();
}, _mainContent); }, _mainContent);

View File

@@ -38,6 +38,10 @@ namespace Bit.iOS.Core.Renderers.CollectionView
// Do nothing in here, this is temporary to get more info about the crash, if the logger fails, we want to get the info // Do nothing in here, this is temporary to get more info about the crash, if the logger fails, we want to get the info
// by crashing with the original exception and not the logger one // by crashing with the original exception and not the logger one
} }
if (ex is IndexOutOfRangeException)
{
return;
}
throw colEx; throw colEx;
} }
} }