From ce005c88e2054ea06e1667195bf6585efc4961ae Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Tue, 22 May 2018 07:05:26 +0200 Subject: [PATCH] Don't try to sign when no certificate is selected Change-Id: I30f8f5970538db25ae678dc5b32afb292fd3983a Reviewed-on: https://gerrit.libreoffice.org/54652 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- cui/source/dialogs/SignSignatureLineDialog.cxx | 1 + 1 file changed, 1 insertion(+) 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();