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

coverity#735812 Dereference after null check

Change-Id: Ie839246f637d079e8e16553c85c682d599d86b58
üst 246aba2a
......@@ -132,7 +132,9 @@ void ScMacroManager::InitUserFuncData()
Reference< container::XContainer > xModuleContainer;
SfxObjectShell* pShell = mpDoc->GetDocumentShell();
if (pShell && !pShell->GetBasicManager()->GetName().isEmpty())
if (!pShell)
return;
if (!pShell->GetBasicManager()->GetName().isEmpty())
{
sProjectName = pShell->GetBasicManager()->GetName();
}
......@@ -151,7 +153,7 @@ void ScMacroManager::InitUserFuncData()
xModuleContainer->addContainerListener( mxContainerListener );
}
}
catch( uno::Exception& )
catch (const uno::Exception&)
{
}
}
......
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