Skip to content

Commit

Permalink
Merge pull request #503 from hargata/Hargata/null.mail.config
Browse files Browse the repository at this point in the history
null check for mail config
  • Loading branch information
hargata committed Apr 25, 2024
2 parents f6139bd + 49184b2 commit ddc3c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/MailHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public MailHelper(
ILogger<MailHelper> logger
) {
//load mailConfig from Configuration
mailConfig = config.GetSection("MailConfig").Get<MailConfig>();
mailConfig = config.GetSection("MailConfig").Get<MailConfig>() ?? new MailConfig();
_fileHelper = fileHelper;
_logger = logger;
}
Expand Down

0 comments on commit ddc3c2e

Please sign in to comment.