sd/source/ui/app/optsitem.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 03aff21eafc19e2e02bfdb0bf541f64eb5942044
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Feb 23 10:38:14 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Feb 23 13:51:03 2022 +0100

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

diff --git a/sd/source/ui/app/optsitem.cxx b/sd/source/ui/app/optsitem.cxx
index 47a92c21df90..5baff32e2df8 100644
--- a/sd/source/ui/app/optsitem.cxx
+++ b/sd/source/ui/app/optsitem.cxx
@@ -110,6 +110,7 @@ void SdOptionsGeneric::Init() const
 
     if( !mpCfgItem )
         pThis->mpCfgItem.reset( new SdOptionsItem( *this, maSubTree ) );
+    assert(mpCfgItem && "mpCfgItem is set by now");
 
     const Sequence< OUString >  aNames( GetPropertyNames() );
     const Sequence< Any >       aValues = mpCfgItem->GetProperties( aNames );

Reply via email to