Kaydet (Commit) bcbef3ac authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704945 Dereference after null check

Change-Id: I23606421cdae293d9021cafcc22c4a326c50d49b
üst f02c2cbb
......@@ -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() )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment