summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-05-22 07:05:26 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2018-05-22 09:43:37 +0200
commitce005c88e2054ea06e1667195bf6585efc4961ae (patch)
tree96d1b9d36cdd7e05278b043b7ed4f3aea773d50c
parent090e243c401fdb73a917a5deb36279c445cfcbb9 (diff)
Don't try to sign when no certificate is selected
Change-Id: I30f8f5970538db25ae678dc5b32afb292fd3983a Reviewed-on: https://gerrit.libreoffice.org/54652 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
-rw-r--r--cui/source/dialogs/SignSignatureLineDialog.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cui/source/dialogs/SignSignatureLineDialog.cxx b/cui/source/dialogs/SignSignatureLineDialog.cxx
index 8cc06d90a4eb..641a4fb10c68 100644
--- a/cui/source/dialogs/SignSignatureLineDialog.cxx
+++ b/cui/source/dialogs/SignSignatureLineDialog.cxx
@@ -142,6 +142,7 @@ void SignSignatureLineDialog::Apply()
if (!m_xSelectedCertifate.is())
{
SAL_WARN("cui.dialogs", "No certificate selected!");
+ return;
}
SfxObjectShell* pShell = SfxObjectShell::Current();