summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-06-19 17:14:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-06-19 17:14:43 +0100
commit0e2a6561043c23b712b534fc3d33336d6bfcc50d (patch)
treecad3ee5f5391330670c0bfcb1d3cc22e99808b10 /extensions
parente3b81f3df69cdbc086f2960e1fb00d17b8c90178 (diff)
coverity#1362777 Explicit null dereferenced
Change-Id: I5db9cf469677b8509c19d6489472a4cf0babeca5
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/abpilot/datasourcehandling.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/abpilot/datasourcehandling.cxx b/extensions/source/abpilot/datasourcehandling.cxx
index a8afb6299ed3..ac9cbe69488c 100644
--- a/extensions/source/abpilot/datasourcehandling.cxx
+++ b/extensions/source/abpilot/datasourcehandling.cxx
@@ -368,7 +368,7 @@ namespace abp
SfxViewFrame* pFrame = SfxViewFrame::Current();
SfxObjectShell* pObjectShell = pFrame ? pFrame->GetObjectShell() : nullptr;
OUString aOwnURL = lcl_getOwnURL(pObjectShell);
- if (aOwnURL.isEmpty() || !rSettings.bEmbedDataSource)
+ if (aOwnURL.isEmpty() || !rSettings.bEmbedDataSource || !pObjectShell)
{
// Cannot or should not embed.
xStorable->storeAsURL(m_pImpl->sName,Sequence<PropertyValue>());