Commit 367ca863 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Do not crash if primary fingerprint is nullptr

GnuPG-bug-id: 5334
parent b4f5f2f4
......@@ -447,7 +447,8 @@ void LookupCertificatesCommand::Private::slotImportRequested(const std::vector<K
std::back_inserter(wkdKeys),
std::back_inserter(otherKeys),
[this](const auto &key) {
return keyListing.wkdKeyFingerprints.find(key.primaryFingerprint()) != std::end(keyListing.wkdKeyFingerprints);
return key.primaryFingerprint() &&
keyListing.wkdKeyFingerprints.find(key.primaryFingerprint()) != std::end(keyListing.wkdKeyFingerprints);
});
std::vector<Key> pgp, cms;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment