summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2017-06-27 16:37:06 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2017-06-28 12:03:42 +0200
commitbd9fef1f6111577415e0716d680d6e714e0b5750 (patch)
treeeb08d3679eedb89c679c65963e2d790c2b9150d5 /xmlsecurity
parent6a3995f0764da5687bb2e1202d75c79015c41838 (diff)
tdf#108798 Make CanSignWithGPG work with PDF docs
Change-Id: I09aa030bed3d6ce51ef71d8bab905b01fab5b699 Reviewed-on: https://gerrit.libreoffice.org/39309 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> (cherry picked from commit 84dfff475c1f25319bc22c7b6ad437d5501a7dc4) Reviewed-on: https://gerrit.libreoffice.org/39349 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/documentsignaturehelper.cxx2
1 files changed, 1 insertions, 1 deletions
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
{