diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-02 12:37:17 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-03-02 13:06:35 +0100 |
commit | 788ffc0360e44c54947bdead6d1eb368e5283915 (patch) | |
tree | d1b4939365b7ffcc377357a13620744cc755dcea /sd | |
parent | 7c6c9951d3be0af11099f78462f7dfc8772df963 (diff) |
tdf#118893: avoid nullptr dereference
Change-Id: I56ada18348ed1b1ebe5e1d6f000391965d822b4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89815
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index fea763848ab9..f4806807a329 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -243,7 +243,7 @@ void SdTransferable::CreateData() SdPage* pPage = mpSdDrawDocument->GetSdPage(0, PageKind::Standard); - if( 1 == pPage->GetObjCount() ) + if( pPage && 1 == pPage->GetObjCount() ) CreateObjectReplacement( pPage->GetObj( 0 ) ); mpVDev = VclPtr<VirtualDevice>::Create( *Application::GetDefaultDevice() ); |