Skip to content

Commit

Permalink
OnServerStarting - Add null check on validationErrors (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsuciu committed Apr 21, 2023
1 parent 04721cb commit ae7f8e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Stack/Opc.Ua.Core/Stack/Server/ServerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,10 @@ protected virtual void OnServerStarting(ApplicationConfiguration configuration)
// only list warning for errors to avoid that the server can not start
foreach (var error in validationErrors)
{
Utils.LogCertificate(LogLevel.Warning, "- " + error.Value.Message, error.Key);
if (error.Value != null)
{
Utils.LogCertificate(LogLevel.Warning, "- " + error.Value.Message, error.Key);
}
}
}

Expand Down

0 comments on commit ae7f8e5

Please sign in to comment.