summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-07-14 15:42:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-07-14 22:17:55 +0200
commit3cf8c9df5d25694f170db9e95070badaaeaa371a (patch)
tree23c703b7f4db8d9e53bf5e68ade3d69b053db5dc
parent095d749fcabdc2601c6dd3c519aa1aba1249a41a (diff)
ofz#9403 null deref
Change-Id: I6efa4be9f4feb4f92f96f7030f933e4a0c406b1e Reviewed-on: https://gerrit.libreoffice.org/57435 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/filter/ppt/pptin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index 364c07662181..f5d6a224e424 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -2124,9 +2124,10 @@ void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiv
if ( !pPtr->aTarget.isEmpty() )
{
::sd::DrawDocShell* pDocShell = mpDoc->GetDocSh();
- if ( pDocShell )
+ SfxMedium* pMedium = pDocShell ? pDocShell->GetMedium() : nullptr;
+ if (pMedium)
{
- OUString aBaseURL = pDocShell->GetMedium()->GetBaseURL();
+ OUString aBaseURL = pMedium->GetBaseURL();
OUString aBookmarkURL( pInfo->GetBookmark() );
INetURLObject aURL( pPtr->aTarget );
if( INetProtocol::NotValid == aURL.GetProtocol()