diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 20:49:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-07 21:57:02 +0000 |
commit | c962f1629213ed30fad355eb5168e212edc4e36a (patch) | |
tree | c50c74c95ef04a3aa26613094694f0dba8291898 /xmloff/source/transform | |
parent | d126ce58c2eb8c56faaa2163a62c5fe5d4b68690 (diff) |
coverity#705098 Explicit null dereferenced
Change-Id: Icf32bbe9ce259048219ba88aa7e4dc51592f7cb5
Diffstat (limited to 'xmloff/source/transform')
-rw-r--r-- | xmloff/source/transform/StyleOOoTContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/transform/StyleOOoTContext.cxx b/xmloff/source/transform/StyleOOoTContext.cxx index 3a6df66c5877..bf841ca478fb 100644 --- a/xmloff/source/transform/StyleOOoTContext.cxx +++ b/xmloff/source/transform/StyleOOoTContext.cxx @@ -978,7 +978,7 @@ void XMLPropertiesOOoTContext_Impl::StartElement( aProtectAttrValue += rSize; } - // coverity[var_deref_model] - pProtectContext is assigned in a superset of the enclosing if condition entry logic + assert(pProtectContext && "coverity[var_deref_model] - pProtectContext should be assigned in a superset of the enclosing if condition entry logic"); pProtectContext->AddAttribute( GetTransformer().GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_STYLE, GetXMLToken( XML_PROTECT ) ), aProtectAttrValue ); } |