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

coverity#705920 Dereference before null check

Change-Id: I2b6cbd482a13b026c6fe1caa8a115b90ef62b1c4
üst 38523b4a
......@@ -1969,7 +1969,7 @@ sal_uInt8 SwFEShell::WhichMouseTabCol( const Point &rPt ) const
if( pFrm )
{
while( pFrm->Lower() && pFrm->Lower()->IsRowFrm() )
while( pFrm && pFrm->Lower() && pFrm->Lower()->IsRowFrm() )
pFrm = (SwCellFrm*)((SwLayoutFrm*)pFrm->Lower())->Lower();
if( pFrm && pFrm->GetTabBox()->GetSttNd() &&
pFrm->GetTabBox()->GetSttNd()->IsInProtectSect() )
......
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