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

Samuel Mehrbrodt Samuel.Mehrbrodt at cib.de
Wed Jun 28 06:09:09 UTC 2017


 xmlsecurity/source/helper/documentsignaturehelper.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 84dfff475c1f25319bc22c7b6ad437d5501a7dc4
Author: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Date:   Tue Jun 27 16:37:06 2017 +0200

    tdf#108798 Make CanSignWithGPG work with PDF docs
    
    Change-Id: I09aa030bed3d6ce51ef71d8bab905b01fab5b699
    Reviewed-on: https://gerrit.libreoffice.org/39309
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx
index 161f36e4ed66..fadf1a6309b2 100644
--- a/xmlsecurity/source/helper/documentsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx
@@ -410,7 +410,7 @@ bool DocumentSignatureHelper::CanSignWithGPG(
 {
     uno::Reference<container::XNameAccess> xNameAccess(rxStore, uno::UNO_QUERY);
     if (!xNameAccess.is())
-        throw RuntimeException();
+        return false;
 
     if (xNameAccess->hasByName("META-INF")) // ODF
     {


More information about the Libreoffice-commits mailing list