Avoid crash without GPG
Change-Id: I5489012544fdf736784608b274359ea99f9ffe45
This commit is contained in:
@@ -308,6 +308,8 @@ void SvxGeneralTabPage::InitCryptography()
|
||||
{
|
||||
xSEInitializer = xml::crypto::GPGSEInitializer::create( comphelper::getProcessComponentContext() );
|
||||
uno::Reference<xml::crypto::XXMLSecurityContext> xSC = xSEInitializer->createSecurityContext( OUString() );
|
||||
if (xSC.is())
|
||||
{
|
||||
uno::Reference<xml::crypto::XSecurityEnvironment> xSE = xSC->getSecurityEnvironment();
|
||||
uno::Sequence<uno::Reference<security::XCertificate>> xCertificates = xSE->getPersonalCertificates();
|
||||
|
||||
@@ -320,6 +322,7 @@ void SvxGeneralTabPage::InitCryptography()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
catch ( uno::Exception const & )
|
||||
{}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user