diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 13:20:56 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-11-06 15:47:55 +0400 |
commit | 5122e3413b06125ff45fd10e1ac1f0e58c24afcc (patch) | |
tree | 1bb7587279c702c3479ceb746c6ef449726a4948 /sw/source/filter/xml/xmlitmpr.cxx | |
parent | 0cf754f5ca356c2d93f7ebf8523b2dc2246e4763 (diff) |
cppcheck: avoid possible null pointer dereferences
Diffstat (limited to 'sw/source/filter/xml/xmlitmpr.cxx')
-rw-r--r-- | sw/source/filter/xml/xmlitmpr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlitmpr.cxx b/sw/source/filter/xml/xmlitmpr.cxx index 27c66e9b5640..d61b4dfa762c 100644 --- a/sw/source/filter/xml/xmlitmpr.cxx +++ b/sw/source/filter/xml/xmlitmpr.cxx @@ -77,7 +77,7 @@ SvXMLItemMapEntry* SvXMLItemMapEntries::getByName( sal_uInt16 nNameSpace, pMap++; } - return (pMap->eLocalName != XML_TOKEN_INVALID) ? pMap : NULL; + return (pMap && (pMap->eLocalName != XML_TOKEN_INVALID)) ? pMap : NULL; } SvXMLItemMapEntry* SvXMLItemMapEntries::getByIndex( sal_uInt16 nIndex ) const |