Skip to content

Commit d09554e

Browse files
committed
Fix null reference in language
1 parent c811fe6 commit d09554e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eFormAPI/eFormAPI/Controllers/AccountController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public OperationDataResult<UserSettingsModel> GetUserSettings()
7676
{
7777
var configuration = WebConfigurationManager.OpenWebConfiguration("~");
7878
var section = (AppSettingsSection)configuration.GetSection("appSettings");
79-
locale = section.Settings["general:defaultLocale"].Value;
79+
locale = section.Settings["general:defaultLocale"]?.Value;
8080
if (locale == null)
8181
{
8282
locale = "en-US";

0 commit comments

Comments
 (0)