diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-05 21:02:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-05 21:14:22 +0100 |
commit | 44202fed1fcb6b8d3523fd9e7bebf47f02fcd6d2 (patch) | |
tree | 7452ae40e8da7e20998639c5f429856f9852da8b /sw | |
parent | 64df417cdb20466c823de0251ad2aa3a80833f28 (diff) |
coverity#1213246 Dereference null return value
Change-Id: I682a1e912728d6e52df258c7528e358f2883b323
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/trvltbl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index e581c7a32496..5d7a647ba3b2 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -63,6 +63,9 @@ bool SwCrsrShell::GoNextCell( bool bAppendLine ) { if ( !pTblNd ) pTblNd = IsCrsrInTbl(); + assert (pTblNd); + if (!pTblNd) + return false; pTableBox = & pTableBox->FindEndOfRowSpan( pTblNd->GetTable(), (sal_uInt16)(pTableBox->getRowSpan() + pCrsr->GetCrsrRowSpanOffset() ) ); pTableBoxStartNode = pTableBox->GetSttNd(); |