Describe the bug
Receiving an error if any battle.net accounts have private profiles.
To Reproduce
Steps to reproduce the behavior:
Add a battle.net account with a private profile, and add a battle tag
enable: Show Overwatch SR and use the Overwatch profile picture
wait until profile is loaded
Expected behavior
Handle private profiles gracefully without An error has occurred. This application may no longer respond until reloaded. and without failing to load other accounts.
Screenshots
Desktop (please complete the following information):
OS: Win10 21H1
Additional context
Downloaded 2022-05-26_01 today, replicated on another machine
Allow multiple instances of battle.net is enabled
blazor.server.js:1
[2022-06-29T03:33:17.295Z] Error: System.NullReferenceException: Object reference not set to an instance of an object.
at TcNo_Acc_Switcher_Server.Pages.BattleNet.BattleNetSwitcherBase.BattleNetUser.FetchRank() in C:\Users\TCNO\Documents\GitHub\TcNo-Acc-Switcher\TcNo-Acc-Switcher-Server\Pages\BattleNet\BattleNetSwitcherBase.cs:line 135
at TcNo_Acc_Switcher_Server.Pages.BattleNet.BattleNetSwitcherFuncs.InitOverwatchMode() in C:\Users\TCNO\Documents\GitHub\TcNo-Acc-Switcher\TcNo-Acc-Switcher-Server\Pages\BattleNet\BattleNetSwitcherFuncs.cs:line 173
at TcNo_Acc_Switcher_Server.Pages.BattleNet.BattleNetSwitcherFuncs.LoadProfiles() in C:\Users\TCNO\Documents\GitHub\TcNo-Acc-Switcher\TcNo-Acc-Switcher-Server\Pages\BattleNet\BattleNetSwitcherFuncs.cs:line 133
at TcNo_Acc_Switcher_Server.Pages.General.GeneralFuncs.HandleFirstRender(Boolean firstRender, String platform) in C:\Users\TCNO\Documents\GitHub\TcNo-Acc-Switcher\TcNo-Acc-Switcher-Server\Pages\General\GeneralFuncs.cs:line 756
at TcNo_Acc_Switcher_Server.Pages.BattleNet.Index.OnAfterRenderAsync(Boolean firstRender) in C:\Users\TCNO\Documents\GitHub\TcNo-Acc-Switcher\TcNo-Acc-Switcher-Server\Pages\BattleNet\Index.razor:line 113
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Describe the bug Receiving an error if any battle.net accounts have private profiles.
To Reproduce Steps to reproduce the behavior:
Show Overwatch SR and use the Overwatch profile picture
Expected behavior Handle private profiles gracefully without
An error has occurred. This application may no longer respond until reloaded.
and without failing to load other accounts.Screenshots
Desktop (please complete the following information):
Win10 21H1
Additional context
2022-05-26_01
today, replicated on another machine