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

coverity#1415514 Dereference after null check

Change-Id: If51d0a4540f63f87b5ba2aece10ed73e416ae783
üst f54ca31d
......@@ -1744,7 +1744,7 @@ SwLayoutFrame *SwFrame::GetPrevSctLeaf()
// have applied, also when the section has a pPrev.
// Now we even consider an empty column...
OSL_ENSURE( pSect, "GetNextSctLeaf: Missing SectionFrame" );
if( ( IsInTab() && !IsTabFrame() ) || FindFooterOrHeader() )
if (!pSect || (IsInTab() && !IsTabFrame()) || FindFooterOrHeader())
return pCol;
// === IMPORTANT ===
......
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