| Index: net/base/x509_certificate_nss.cc
|
| diff --git a/net/base/x509_certificate_nss.cc b/net/base/x509_certificate_nss.cc
|
| index af7172c69940e1857940253a6f9227c2b109452c..0436abbb18ff8f1d3aec45a2c2132928b8f0659b 100644
|
| --- a/net/base/x509_certificate_nss.cc
|
| +++ b/net/base/x509_certificate_nss.cc
|
| @@ -710,7 +710,7 @@ std::string X509Certificate::GetDefaultNickname(CertType type) const {
|
| return default_nickname_;
|
|
|
| std::string result;
|
| - if (type == USER_CERT) {
|
| + if (type == USER_CERT && cert_handle_->slot) {
|
| // Find the private key for this certificate and see if it has a
|
| // nickname. If there is a private key, and it has a nickname, then
|
| // we return that nickname.
|
|
|