Kaydet (Commit) 01985fd8 authored tarafından Thorsten Behrens's avatar Thorsten Behrens Kaydeden (comit) Markus Mohrhard

xmlsecurity: avoid crash on empty security context

This should prevent 8cf224c2-f9b9-44e1-9cb0-fc452e570886

Change-Id: I1ad4d8437923eb677d574c2c469cc62378c9c7a6
Reviewed-on: https://gerrit.libreoffice.org/39430Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 7250bc47
......@@ -153,6 +153,8 @@ void CertificateChooser::ImplInitialize()
for (auto &secContext : mxSecurityContexts)
{
if (!secContext.is())
continue;
auto secEnvironment = secContext->getSecurityEnvironment();
if (!secEnvironment.is())
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment