summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-22 10:18:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-22 14:42:13 +0100
commita98d96b25f9cdfc7e87bd9228a36cb0e4657dad8 (patch)
treead62b0d401632c16f3f65c09c2be4b9fddc424f1 /svx
parentd2475f85bf4f0015007746d6af5dd5baaee09566 (diff)
cid#1473883 Dereference before null check
Change-Id: I2499bb9a109d614097d42cbea973f9b5ca5b8d6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112873 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdhdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index 0d09bc28c3ef..339f3d638f55 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -788,7 +788,7 @@ std::unique_ptr<sdr::overlay::OverlayObject> SdrHdl::CreateOverlayObject(
// support bigger sizes
bool bForceBiggerSize(false);
- if(pHdlList->GetHdlSize() > 3)
+ if (pHdlList && pHdlList->GetHdlSize() > 3)
{
switch(eKindOfMarker)
{