diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 12:59:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-15 20:55:48 +0000 |
commit | 4a679c92bd43bbd166d31a62c6ee7c04dd3c588f (patch) | |
tree | b2da62d926fb1efc59006894b88191a834a442a1 | |
parent | 3d00ff2bcd08023d15a7f3d610a77a2b98933006 (diff) |
coverity#704920 Dereference after null check
Change-Id: I20f1f3183555a813f0e1c3b73d973333774b6b63
-rw-r--r-- | sw/source/core/layout/tabfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 7427b7449870..10d5b4de4106 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -3222,7 +3222,7 @@ SwCntntFrm *SwTabFrm::FindLastCntnt() const SwFrm* pRow = pRet->GetUpper(); while ( pRow && !pRow->GetUpper()->IsTabFrm() ) pRow = pRow->GetUpper(); - SwCntntFrm* pCntntFrm = ((SwLayoutFrm*)pRow)->ContainsCntnt(); + SwCntntFrm* pCntntFrm = pRow ? ((SwLayoutFrm*)pRow)->ContainsCntnt() : NULL; pRet = 0; while ( pCntntFrm && ((SwLayoutFrm*)pRow)->IsAnLower( pCntntFrm ) ) |