diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 16:55:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 16:55:03 +0000 |
commit | 9e5f76941eb63fd3a6257895f0731315165ddb12 (patch) | |
tree | 43d5ae64127315cdd019528ecf0f36797d396053 /sw | |
parent | 754fe6fa053ee03e44237d626667291fd884423a (diff) |
coverity#705005 Dereference after null check
Change-Id: I4ed75d05777d55bd58542f4ffb39cc9af6215c56
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 738caaffd491..45156033a804 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -744,7 +744,7 @@ void SwXMLImport::endDocument( void ) { // If the PaM points to the first new node, move the PaM to the // end of the previous node. - if( pPaM && pPaM->GetPoint()->nNode == aNxtIdx ) + if( pPaM->GetPoint()->nNode == aNxtIdx ) { pPaM->GetPoint()->nNode = *pSttNdIdx; pPaM->GetPoint()->nContent.Assign( pTxtNode, |