diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-07-14 15:42:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-07-14 22:17:55 +0200 |
commit | 3cf8c9df5d25694f170db9e95070badaaeaa371a (patch) | |
tree | 23c703b7f4db8d9e53bf5e68ade3d69b053db5dc /sd | |
parent | 095d749fcabdc2601c6dd3c519aa1aba1249a41a (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>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptin.cxx | 5 |
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() |