summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-03 09:59:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-03 20:44:56 +0000
commitf42e3678bb23fef111666bc8b4bf1a3c4d73d3de (patch)
tree59602f072aea58f7dcdfcf118264f5fdac0ae33b /cui
parent8be0bf735adc26f38212efd1dd6231a87e974f5b (diff)
coverity#1250409 Explicit null dereferenced
Change-Id: Iab78e3ec447b8a32f43dff3e30c5be254f6d0a48
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx3
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(