summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-02-23 10:38:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-02-23 13:51:03 +0100
commit03aff21eafc19e2e02bfdb0bf541f64eb5942044 (patch)
tree28aad43db82aa4dc8d125313d6056addc580207f /sd
parentd479a215538590e50ea9d8fb29ac972df06c6d10 (diff)
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 <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/optsitem.cxx1
1 files changed, 1 insertions, 0 deletions
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 );