diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-29 21:25:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-30 11:43:39 +0100 |
commit | 225cc70f398963f39dfe7d986d61462e07417a8a (patch) | |
tree | 89f3dd313ed9defcbe0d91d22d85e7612fe96c7a /cui | |
parent | 7210621e0367f2bcac8509c7701ebd272ad5ee3c (diff) |
coverity#704598 Dereference after null check
Change-Id: I37bb96ae15c2e96ed4592f1a2a13d4f932be0d2b
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 81356106c39e..c9a485b3734a 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -266,6 +266,9 @@ generateCustomName( name = prefix + OUString::number( suffix ); } + if (!entries) + return name; + // now check is there is an already existing entry with this name SvxEntries::const_iterator iter = entries->begin(); |