diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 11:22:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-10 12:50:22 +0100 |
commit | 353ef256b1a09ec431c3397c9ed8e232b713765d (patch) | |
tree | 2ae9a88c940c3621ad36473101be60f431fb347c | |
parent | 4525355aeeb56826717c3a59dece690b4f783dce (diff) |
coverity#735906 Dereference after null check
Change-Id: If81f0e18d5236873628301173d07f22d52c4fb0a
-rw-r--r-- | sw/source/core/layout/flycnt.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx index 7b06f096c689..062633883ccf 100644 --- a/sw/source/core/layout/flycnt.cxx +++ b/sw/source/core/layout/flycnt.cxx @@ -642,7 +642,7 @@ static const SwFrm * lcl_CalcDownDist( SwDistance &rRet, { bSct = false; const SwSectionFrm* pNxtSect = pLay ? pLay->FindSctFrm() : 0; - if( pSect->IsAnFollow( pNxtSect ) ) + if (pSect->IsAnFollow(pNxtSect) && pLay) { if( pLay->IsVertical() ) { |