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

coverity#1362777 Explicit null dereferenced

Change-Id: I5db9cf469677b8509c19d6489472a4cf0babeca5
üst e3b81f3d
...@@ -368,7 +368,7 @@ namespace abp ...@@ -368,7 +368,7 @@ namespace abp
SfxViewFrame* pFrame = SfxViewFrame::Current(); SfxViewFrame* pFrame = SfxViewFrame::Current();
SfxObjectShell* pObjectShell = pFrame ? pFrame->GetObjectShell() : nullptr; SfxObjectShell* pObjectShell = pFrame ? pFrame->GetObjectShell() : nullptr;
OUString aOwnURL = lcl_getOwnURL(pObjectShell); OUString aOwnURL = lcl_getOwnURL(pObjectShell);
if (aOwnURL.isEmpty() || !rSettings.bEmbedDataSource) if (aOwnURL.isEmpty() || !rSettings.bEmbedDataSource || !pObjectShell)
{ {
// Cannot or should not embed. // Cannot or should not embed.
xStorable->storeAsURL(m_pImpl->sName,Sequence<PropertyValue>()); xStorable->storeAsURL(m_pImpl->sName,Sequence<PropertyValue>());
......
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