filter/source/svg/svgwriter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ee351bc9d83798c4bed6ef891e602981ae88ae24
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Feb 23 10:25:04 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Feb 23 12:16:58 2022 +0100

    cid#1500622 Dereference before null check
    
    Change-Id: Id19f46ff51759c8346915852bfcb2cec66962c5b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130420
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx
index 9209599976b9..8e5f897ec5c8 100644
--- a/filter/source/svg/svgwriter.cxx
+++ b/filter/source/svg/svgwriter.cxx
@@ -3526,7 +3526,7 @@ void SVGActionWriter::ImplWriteActions( const 
GDIMetaFile& rMtf,
                         }
                     }
 
-                    if(mapCurShape && mapCurShape->maShapePolyPoly.Count() && 
(aStartArrow.Count() || aEndArrow.Count()))
+                    if (mapCurShape->maShapePolyPoly.Count() && 
(aStartArrow.Count() || aEndArrow.Count()))
                     {
                         ImplWriteShape( *mapCurShape );
 

Reply via email to