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

coverity#735906 Dereference after null check

Change-Id: If81f0e18d5236873628301173d07f22d52c4fb0a
üst 4525355a
...@@ -642,7 +642,7 @@ static const SwFrm * lcl_CalcDownDist( SwDistance &rRet, ...@@ -642,7 +642,7 @@ static const SwFrm * lcl_CalcDownDist( SwDistance &rRet,
{ {
bSct = false; bSct = false;
const SwSectionFrm* pNxtSect = pLay ? pLay->FindSctFrm() : 0; const SwSectionFrm* pNxtSect = pLay ? pLay->FindSctFrm() : 0;
if( pSect->IsAnFollow( pNxtSect ) ) if (pSect->IsAnFollow(pNxtSect) && pLay)
{ {
if( pLay->IsVertical() ) if( pLay->IsVertical() )
{ {
......
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