Because jkotalik told me to

This commit is contained in:
John Luo 2020-04-02 11:58:09 -07:00
parent fcb23108b6
commit f4a4346298
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests
}
catch (Exception ex)
{
Logger.LogError($"Certificate is invalid. Issuer name: {cert.Issuer}");
Logger.LogError($"Certificate is invalid. Issuer name: {cert?.Issuer}");
using (var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine))
{
Logger.LogError($"List of current certificates in root store:");