diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 16:23:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-22 16:23:06 +0000 |
commit | 78d382066a0437dca9e4e13668f99b08c27b78b0 (patch) | |
tree | 05ac5f3d530b517d22d055ad219fd98a40a75237 /sw | |
parent | 15a26f0a389be09b4655774f3734e59bd9684ee7 (diff) |
coverity#705913 Dereference before null check
Change-Id: I2f025ede234cfbea4f6422001d1dcfb1b8e73a6f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/viscrs.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/crsr/viscrs.cxx b/sw/source/core/crsr/viscrs.cxx index a6f349bda9c1..40b795430b36 100644 --- a/sw/source/core/crsr/viscrs.cxx +++ b/sw/source/core/crsr/viscrs.cxx @@ -691,12 +691,12 @@ void SwShellTableCrsr::FillRects() const SwTableNode* pSelTblNd = pSttNd->FindTableNode(); SwNodeIndex aIdx( *pSttNd ); - SwCntntNode* pCNd = rNds.GoNextSection( &aIdx, true, false ); + SwCntntNode* pCNd = rNds.GoNextSection( &aIdx, true, false ); // table in table // (see also lcl_FindTopLevelTable in unoobj2.cxx for a different // version to do this) - const SwTableNode* pCurTblNd = pCNd->FindTableNode(); + const SwTableNode* pCurTblNd = pCNd ? pCNd->FindTableNode() : NULL; while ( pSelTblNd != pCurTblNd && pCurTblNd ) { aIdx = pCurTblNd->EndOfSectionIndex(); |