Check for nil when querying a certificate.

This commit is contained in:
Christopher Boumenot 2016-05-27 21:52:26 -07:00
parent cab750abb1
commit a010f80382
1 changed files with 4 additions and 0 deletions

View File

@ -39,6 +39,10 @@ func (s *StepGetCertificate) getCertificateUrl(keyVaultName string, secretName s
return "", err
}
if secret == nil || secret.ID == nil {
return "", fmt.Errorf("certificate is nil")
}
return *secret.ID, err
}