summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-04-27 13:04:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-04-27 17:30:36 +0200
commitbb28a0e8b914edf1fe2aac0cd1a876b976f61300 (patch)
tree9f021cc81cd0d3473f302ccdf151c27c3eb9e1f9 /sd/source
parent40950c2f77e2baad49ef0ab4f4cb08cd81c457d5 (diff)
cid#1528189 Uninitialized pointer field
Change-Id: I9c66ee7d147cf9082b9f065601a87ef5d2fc01d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151098 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 68e794c21d5d..e39099a61675 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -468,6 +468,7 @@ void SdPageObjsTLV::OnDragFinished()
SdPageObjsTLVDropTarget::SdPageObjsTLVDropTarget(weld::TreeView& rTreeView)
: DropTargetHelper(rTreeView.get_drop_target())
, m_rTreeView(rTreeView)
+ , m_pSdrView(nullptr)
{
}
@@ -552,7 +553,7 @@ sal_Int8 SdPageObjsTLVDropTarget::ExecuteDrop( const ExecuteDropEvent& rEvt )
if (pTargetObject == reinterpret_cast<SdrObject*>(1))
pTargetObject = nullptr;
- if (pTargetObject != nullptr && pSourceObject != nullptr)
+ if (pTargetObject != nullptr && pSourceObject != nullptr && m_pSdrView)
{
SdrPage* pObjectList = pSourceObject->getSdrPageFromSdrObject();