diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-19 17:14:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-19 17:14:43 +0100 |
commit | 0e2a6561043c23b712b534fc3d33336d6bfcc50d (patch) | |
tree | cad3ee5f5391330670c0bfcb1d3cc22e99808b10 /extensions | |
parent | e3b81f3df69cdbc086f2960e1fb00d17b8c90178 (diff) |
coverity#1362777 Explicit null dereferenced
Change-Id: I5db9cf469677b8509c19d6489472a4cf0babeca5
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/abpilot/datasourcehandling.cxx | 2 |
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>()); |