diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 15:42:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-08-07 18:00:49 +0100 |
commit | dbe74ab1b38bbd97c8c5304957f8327f064fc21b (patch) | |
tree | 11e1cd643f74513be48caad4fc3b4ee35574b2fa /sw | |
parent | 086611d2ce95f67a55efbd169ee4636dd60f68c5 (diff) |
coverity#1209529 Dereference after null check
Change-Id: I58fbc34996157e7118983a245d31f471b603361f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/SwStyleNameMapper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/SwStyleNameMapper.cxx b/sw/source/core/doc/SwStyleNameMapper.cxx index deabe3ccf338..b4a4af1aacda 100644 --- a/sw/source/core/doc/SwStyleNameMapper.cxx +++ b/sw/source/core/doc/SwStyleNameMapper.cxx @@ -474,7 +474,8 @@ const NameToIdHash & SwStyleNameMapper::getHashTable ( SwGetPoolIdFromName eFlag } // Proceed if we have a pointer to a hash, and the hash hasn't already been populated - if ( pHashPointer && !*pHashPointer ) + assert(pHashPointer && "null hash pointer"); + if (!*pHashPointer ) { // Compute the size of the hash we need to build sal_uInt16 nSize = std::accumulate( vIndexes.begin(), vIndexes.end(), 0, lcl_AccumulateIndexCount ); |