diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-04-18 18:11:02 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-04-18 18:13:32 +0300 |
commit | 43d9231f72cb95ccbe632cd8c0464b506103699d (patch) | |
tree | 9b0680df04cb154951977cf7fc7669d09ca412ca /xmlsecurity/source/dialogs | |
parent | 24fa0d64b62ddca20bef224e7e47aa45afd67665 (diff) |
Don't crash without GPG
Change-Id: I31caf1b3da7400856d6ee46bd0cc4050e32b6e3a
Diffstat (limited to 'xmlsecurity/source/dialogs')
-rw-r--r-- | xmlsecurity/source/dialogs/certificatechooser.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index 0509b29e1e46..3cf2b5e5af86 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -152,6 +152,9 @@ void CertificateChooser::ImplInitialize() for (auto &secEnvironment : mxSecurityEnvironments) { + if (!secEnvironment.is()) + continue; + uno::Sequence< uno::Reference< security::XCertificate > > xCerts; try { |