mirror of
https://github.com/bitwarden/mobile
synced 2024-12-25 00:12:24 +01: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:
parent
a71c28536d
commit
afbcb212f6
@ -75,7 +75,7 @@ namespace Bit.Core.Services
|
||||
var urls = await _stateService.GetEnvironmentUrlsAsync();
|
||||
urls ??= await _stateService.GetPreAuthEnvironmentUrlsAsync();
|
||||
|
||||
if (urls == null || urls.IsEmpty)
|
||||
if (urls == null || urls.IsEmpty || region is null)
|
||||
{
|
||||
await SetRegionAsync(Region.US);
|
||||
_conditionedAwaiterManager.SetAsCompleted(AwaiterPrecondition.EnvironmentUrlsInited);
|
||||
|
Loading…
Reference in New Issue
Block a user