diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-03 09:59:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-03 20:44:56 +0000 |
commit | f42e3678bb23fef111666bc8b4bf1a3c4d73d3de (patch) | |
tree | 59602f072aea58f7dcdfcf118264f5fdac0ae33b /cui | |
parent | coverity#735914 Dereference after null check (diff) | |
download | core-f42e3678bb23fef111666bc8b4bf1a3c4d73d3de.tar.gz core-f42e3678bb23fef111666bc8b4bf1a3c4d73d3de.zip |
coverity#1250409 Explicit null dereferenced
Change-Id: Iab78e3ec447b8a32f43dff3e30c5be254f6d0a48
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 8203914010b2..5b09be9cf34f 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -2635,7 +2635,8 @@ SvxMainMenuOrganizerDialog::SvxMainMenuOrganizerDialog( pNewMenuEntry->SetUserData( pNewEntryData ); - mpEntries->push_back( pNewEntryData ); + if (mpEntries) + mpEntries->push_back(pNewEntryData); m_pMenuNameEdit->SetText( newname ); m_pMenuNameEdit->SetModifyHdl( |