From 0e2a6561043c23b712b534fc3d33336d6bfcc50d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 19 Jun 2016 17:14:43 +0100 Subject: coverity#1362777 Explicit null dereferenced Change-Id: I5db9cf469677b8509c19d6489472a4cf0babeca5 --- extensions/source/abpilot/datasourcehandling.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extensions') 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()); -- cgit