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

coverity#705921 Dereference before null check

Change-Id: I7aea5663ed4a5d2f4990292d64eefd782119aded
üst 7f3326f2
...@@ -1435,10 +1435,8 @@ SwCellFrm* SwCellFrm::GetFollowCell() const ...@@ -1435,10 +1435,8 @@ SwCellFrm* SwCellFrm::GetFollowCell() const
// find most upper row frame // find most upper row frame
const SwFrm* pRow = GetUpper(); const SwFrm* pRow = GetUpper();
if (!pRow)
return NULL;
while (!pRow->IsRowFrm() || !pRow->GetUpper()->IsTabFrm()) while (pRow && (!pRow->IsRowFrm() || !pRow->GetUpper()->IsTabFrm()))
pRow = pRow->GetUpper(); pRow = pRow->GetUpper();
if (!pRow) if (!pRow)
......
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