Skip to content

Commit 36dd565

Browse files
authored
Merge pull request #2130 from OPCFoundation/master
Add missing null check on validationErrors (#2128)
2 parents c226199 + ae7f8e5 commit 36dd565

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Stack/Opc.Ua.Core/Stack/Server/ServerBase.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,10 @@ protected virtual void OnServerStarting(ApplicationConfiguration configuration)
13241324
// only list warning for errors to avoid that the server can not start
13251325
foreach (var error in validationErrors)
13261326
{
1327-
Utils.LogCertificate(LogLevel.Warning, "- " + error.Value.Message, error.Key);
1327+
if (error.Value != null)
1328+
{
1329+
Utils.LogCertificate(LogLevel.Warning, "- " + error.Value.Message, error.Key);
1330+
}
13281331
}
13291332
}
13301333

0 commit comments

Comments
 (0)