diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 21:52:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 22:04:50 +0100 |
commit | e0e50eff21545cbfdd594f5b4474aba2f5b0405e (patch) | |
tree | 0a58113375e0956a00822d1436103a06d02dfe45 /sw/source/core/layout/sectfrm.cxx | |
parent | f54ca31d2900e6592ffc22888d0f2475a75630dc (diff) |
coverity#1415514 Dereference after null check
Change-Id: If51d0a4540f63f87b5ba2aece10ed73e416ae783
Diffstat (limited to 'sw/source/core/layout/sectfrm.cxx')
-rw-r--r-- | sw/source/core/layout/sectfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/sectfrm.cxx b/sw/source/core/layout/sectfrm.cxx index cd0d3002cddc..eb2af5feec80 100644 --- a/sw/source/core/layout/sectfrm.cxx +++ b/sw/source/core/layout/sectfrm.cxx @@ -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 === |