Skip to content

Commit

Permalink
Add missing null check operator in ShellSettingsManager.EnsureConfigu…
Browse files Browse the repository at this point in the history
…rationAsync() (#12328)
  • Loading branch information
hishamco authored Sep 5, 2022
1 parent b27fee0 commit 7f95dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrchardCore/OrchardCore/Shell/ShellSettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ private async Task EnsureConfigurationAsync()
.AddConfiguration(_applicationConfiguration)
.AddSourcesAsync(_tenantsConfigSources);

if (lastProviders.Count() > 0)
if (lastProviders?.Length > 0)
{
configurationBuilder.AddConfiguration(new ConfigurationRoot(lastProviders));
}
Expand Down

0 comments on commit 7f95dc0

Please sign in to comment.