summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/dialogs/certificateviewer.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmlsecurity/source/dialogs/certificateviewer.cxx b/xmlsecurity/source/dialogs/certificateviewer.cxx
index 3749160a5078..a256d3d3937f 100644
--- a/xmlsecurity/source/dialogs/certificateviewer.cxx
+++ b/xmlsecurity/source/dialogs/certificateviewer.cxx
@@ -280,9 +280,11 @@ CertificateViewerDetailsTP::CertificateViewerDetailsTP( vcl::Window* _pParent, C
InsertElement( XMLSEC_RES( STR_SIGNATURE_ALGO ), aLBEntry, aDetails );
CertificateChooser* pChooser = dynamic_cast<CertificateChooser*>(mpDlg->GetParent());
- assert(pChooser);
- aLBEntry = pChooser->UsageInClearText( mpDlg->mxCert->getCertificateUsage() );
- InsertElement( XMLSEC_RES( STR_USE ), aLBEntry, aLBEntry );
+ if (pChooser)
+ {
+ aLBEntry = pChooser->UsageInClearText( mpDlg->mxCert->getCertificateUsage() );
+ InsertElement( XMLSEC_RES( STR_USE ), aLBEntry, aLBEntry );
+ }
aSeq = xCert->getSHA1Thumbprint();
aLBEntry = XmlSec::GetHexString( aSeq, pHexSep );