summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/sectfrm.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-07-23 21:52:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-07-23 22:04:50 +0100
commite0e50eff21545cbfdd594f5b4474aba2f5b0405e (patch)
tree0a58113375e0956a00822d1436103a06d02dfe45 /sw/source/core/layout/sectfrm.cxx
parentf54ca31d2900e6592ffc22888d0f2475a75630dc (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.cxx2
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 ===