You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_scopeDisposable should be null-checked before disposing.
Steps To Reproduce
For whatever reason, the scope isn't null in Microsoft.Extensions.Logging 2.2 even though the docs say this version could still return null. We can see this when running Microsoft.AspNetCore.SignalR.Client.Tests.HttpConnectionTests+Negotiate.NegotiateReturnedConenctionIdIsSetOnConnection test - as it's using LogSinkLogger, which returns null in its BeginScope() override.
Upgrading Microsoft.Extensions.Logging references and its dependencies to 3.1 is correctly calling the override and returning null, but that dispose method above throws a null ref exception at runtime.