coverity#704945 Dereference after null check

Change-Id: I23606421cdae293d9021cafcc22c4a326c50d49b
This commit is contained in:
Caolán McNamara
2014-03-25 10:17:03 +00:00
parent f02c2cbb28
commit bcbef3acbf

View File

@@ -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() )
{