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

coverity#736154 Dereference null return value

Change-Id: I8881b0bcf7347fba35edcba4ba23b873312139cb
üst 2496eaa5
...@@ -346,7 +346,8 @@ void SwSectionFrm::Paste( SwFrm* pParent, SwFrm* pSibling ) ...@@ -346,7 +346,8 @@ void SwSectionFrm::Paste( SwFrm* pParent, SwFrm* pSibling )
while ( pTmp->GetNext() ) while ( pTmp->GetNext() )
pTmp = pTmp->GetNext(); pTmp = pTmp->GetNext();
SwFrm* pSave = ::SaveCntnt( pCol ); SwFrm* pSave = ::SaveCntnt( pCol );
::RestoreCntnt( pSave, pSibling->GetUpper(), pTmp, true ); if (pSave)
::RestoreCntnt( pSave, pSibling->GetUpper(), pTmp, true );
} }
} }
} }
......
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