[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - xmlsecurity/source

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


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

New commits:
commit bd9fef1f6111577415e0716d680d6e714e0b5750
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>
    (cherry picked from commit 84dfff475c1f25319bc22c7b6ad437d5501a7dc4)
    Reviewed-on: https://gerrit.libreoffice.org/39349
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx
index a8b355116ff3..9a2537ee828d 100644
--- a/xmlsecurity/source/helper/documentsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx
@@ -415,7 +415,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