[Libreoffice-commits] core.git: xmlsecurity/source

Tor Lillqvist tml at collabora.com
Tue Apr 18 15:16:19 UTC 2017


 xmlsecurity/source/dialogs/certificatechooser.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 43d9231f72cb95ccbe632cd8c0464b506103699d
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Apr 18 18:11:02 2017 +0300

    Don't crash without GPG
    
    Change-Id: I31caf1b3da7400856d6ee46bd0cc4050e32b6e3a

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
         {


More information about the Libreoffice-commits mailing list