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

coverity#1302687 Dereference null return value

Change-Id: I65e09944bdfa0ccc0aa2b0e6bf423ab943c642f8
üst c7309a48
......@@ -1241,8 +1241,16 @@ void SwFlyAtCntFrm::SetAbsPos( const Point &rNew )
while ( pCnt->IsFollow() )
{
do
{ pCnt = pCnt->GetPrevContentFrm();
} while ( pCnt->GetFollow() != pFollow );
{
SwContentFrm* pPrev = pCnt->GetPrevContentFrm();
if (!pPrev)
{
SAL_WARN("sw.core", "very unexpected missing PrevContentFrm");
break;
}
pCnt = pPrev;
}
while ( pCnt->GetFollow() != pFollow );
pFollow = pCnt;
}
SwTwips nDiff = 0;
......
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