Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve ut
Browse files Browse the repository at this point in the history
xingsy97 committed Nov 19, 2024
1 parent 9983800 commit 3f24099
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -163,7 +163,7 @@ protected override Task OnClientConnectedAsync(OpenConnectionMessage message)

connection.Features.Set<IConnectionMigrationFeature>(null);

if (_cultureFeatureManager.TryRemoveCultureFeature(connection.RequestId, out var cultureFeature))
if (_cultureFeatureManager != null && _cultureFeatureManager.TryRemoveCultureFeature(connection.RequestId, out var cultureFeature))
{
CultureInfo.CurrentCulture = cultureFeature.RequestCulture.Culture;
CultureInfo.CurrentUICulture = cultureFeature.RequestCulture.UICulture;

0 comments on commit 3f24099

Please sign in to comment.