| Index: net/cert/x509_certificate_nss.cc
|
| diff --git a/net/cert/x509_certificate_nss.cc b/net/cert/x509_certificate_nss.cc
|
| index 9e95413a22e311d8b93bdc2e04078945847083d5..9019625869aacf35bcf3280a4733eeb2bac5ccc6 100644
|
| --- a/net/cert/x509_certificate_nss.cc
|
| +++ b/net/cert/x509_certificate_nss.cc
|
| @@ -141,7 +141,7 @@ bool X509Certificate::IsIssuedByEncoded(
|
| // static
|
| bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle,
|
| std::string* encoded) {
|
| - if (!cert_handle->derCert.len)
|
| + if (!cert_handle || !cert_handle->derCert.len)
|
| return false;
|
| encoded->assign(reinterpret_cast<char*>(cert_handle->derCert.data),
|
| cert_handle->derCert.len);
|
|
|