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

coverity#704905 Dereference after null check

Change-Id: I3b66764c6c783d2a076d6b201be2d4473891bd83
üst d6135748
......@@ -1430,7 +1430,7 @@ void _InsertCnt( SwLayoutFrm *pLay, SwDoc *pDoc,
//Close the section, where appropriate activate the surrounding
//section again.
SwActualSection *pTmp = pActualSection->GetUpper();
SwActualSection *pTmp = pActualSection ? pActualSection->GetUpper() : NULL;
delete pActualSection;
pLay = pLay->FindSctFrm();
if ( 0 != (pActualSection = pTmp) )
......
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