mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
[PM-4896] Fix null reference exception on the region when setting env urls (#2876)
* PM-4896 Fix null reference exception on the region * PM-4896 Updated dotnet version to set up in build workflow * PM-4896 Add NET 3.1.x and NET 7.0.x to Android build * PM-4896 Reversed to NET 3.1.x Android build * PM-4896 Removed changes on build.yml for net version name
This commit is contained in:
committed by
GitHub
parent
a71c28536d
commit
afbcb212f6
@@ -75,7 +75,7 @@ namespace Bit.Core.Services
|
|||||||
var urls = await _stateService.GetEnvironmentUrlsAsync();
|
var urls = await _stateService.GetEnvironmentUrlsAsync();
|
||||||
urls ??= await _stateService.GetPreAuthEnvironmentUrlsAsync();
|
urls ??= await _stateService.GetPreAuthEnvironmentUrlsAsync();
|
||||||
|
|
||||||
if (urls == null || urls.IsEmpty)
|
if (urls == null || urls.IsEmpty || region is null)
|
||||||
{
|
{
|
||||||
await SetRegionAsync(Region.US);
|
await SetRegionAsync(Region.US);
|
||||||
_conditionedAwaiterManager.SetAsCompleted(AwaiterPrecondition.EnvironmentUrlsInited);
|
_conditionedAwaiterManager.SetAsCompleted(AwaiterPrecondition.EnvironmentUrlsInited);
|
||||||
|
|||||||
Reference in New Issue
Block a user