summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/DocumentSigner.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/DocumentSigner.cxx')
-rw-r--r--sfx2/source/doc/DocumentSigner.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/sfx2/source/doc/DocumentSigner.cxx b/sfx2/source/doc/DocumentSigner.cxx
index 88dd7c3c3570..ae2db667ca75 100644
--- a/sfx2/source/doc/DocumentSigner.cxx
+++ b/sfx2/source/doc/DocumentSigner.cxx
@@ -98,9 +98,12 @@ bool DocumentSigner::signDocument(uno::Reference<security::XCertificate> const&
if (bSuccess)
{
uno::Reference<embed::XTransactedObject> xTransact(xWriteableZipStore,
- uno::UNO_QUERY_THROW);
- xTransact->commit();
- bResult = true;
+ uno::UNO_QUERY);
+ if (xTransact)
+ {
+ xTransact->commit();
+ bResult = true;
+ }
}
}
else