[Libreoffice-commits] core.git: svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Mar 22 13:43:01 UTC 2021


 svx/source/svdraw/svdhdl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a98d96b25f9cdfc7e87bd9228a36cb0e4657dad8
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Mar 22 10:18:51 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Mon Mar 22 14:42:13 2021 +0100

    cid#1473883 Dereference before null check
    
    Change-Id: I2499bb9a109d614097d42cbea973f9b5ca5b8d6b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112873
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

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)
         {


More information about the Libreoffice-commits mailing list