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 | |
parent | coverity#704714 Dereference after null check (diff) | |
download | core-225cc70f398963f39dfe7d986d61462e07417a8a.tar.gz core-225cc70f398963f39dfe7d986d61462e07417a8a.zip |
coverity#704598 Dereference after null check
Change-Id: I37bb96ae15c2e96ed4592f1a2a13d4f932be0d2b
-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(); |