Kaydet (Commit) c38f1191 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#5834 Null-dereference

Change-Id: If52162286c949bd8c4f283ca8669fb1a99a61b0c
Reviewed-on: https://gerrit.libreoffice.org/48897Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst e2762894
......@@ -339,7 +339,7 @@ FormulaLogger::GroupScope FormulaLogger::enterGroup(
{
// Get the file name if available.
const SfxObjectShell* pShell = rDoc.GetDocumentShell();
const SfxMedium* pMedium = pShell->GetMedium();
const SfxMedium* pMedium = pShell ? pShell->GetMedium() : nullptr;
OUString aName;
if (pMedium)
aName = pMedium->GetURLObject().GetLastName();
......
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