diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 10:17:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-25 12:33:19 +0000 |
commit | bcbef3acbf80cabcd78eb4c6320b6a116a70f5ff (patch) | |
tree | c10d47533586e8f0022790485712dc1df37117d5 /sw | |
parent | f02c2cbb28d7748aab9702218e901c2775d4d3a2 (diff) |
coverity#704945 Dereference after null check
Change-Id: I23606421cdae293d9021cafcc22c4a326c50d49b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/txtnode/ndtxt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx index b7183c0f9801..3d3afcb3503a 100644 --- a/sw/source/core/txtnode/ndtxt.cxx +++ b/sw/source/core/txtnode/ndtxt.cxx @@ -1116,7 +1116,7 @@ void SwTxtNode::_ChgTxtCollUpdateNum( const SwTxtFmtColl *pOldColl, SwNodes& rNds = GetNodes(); // Update beim Level 0 noch die Fussnoten !! - if( ( !nNewLevel || !nOldLevel) && !pDoc->GetFtnIdxs().empty() && + if( ( !nNewLevel || !nOldLevel) && pDoc && !pDoc->GetFtnIdxs().empty() && FTNNUM_CHAPTER == pDoc->GetFtnInfo().eNum && rNds.IsDocNodes() ) { |