1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-05 09:01:11 +01:00

[PM-2915] Fix config service null exception error bug (#2778)

This commit is contained in:
André Bispo 2023-10-02 20:43:42 +01:00 committed by GitHub
parent bbef0f8c93
commit 685e0f407a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ namespace Bit.Core.Services
_stateService.SetConfigs(_configs); _stateService.SetConfigs(_configs);
} }
} }
catch (ApiException ex) when (ex.Error.StatusCode == System.Net.HttpStatusCode.BadGateway) catch (ApiException ex) when (ex.Error?.StatusCode == System.Net.HttpStatusCode.BadGateway)
{ {
// ignore if there is no internet connection and return local configs // ignore if there is no internet connection and return local configs
} }