diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-08 19:35:34 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-01-09 12:59:11 +0100 |
commit | 4ab5ada96c4c6ad0b076ba6ad55e5840fff99397 (patch) | |
tree | 69d7f1d73f69974f909ac299e9ecf4613ab182a3 /sw | |
parent | a53a9d9db3cc65f66ea7322de7ec718e8f468b8e (diff) |
cid#1471571 Dereference null return value
Change-Id: Ia284ddc1a2f9e60639a2992f0b091745d9721d09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109016
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/crsr/trvltbl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/crsr/trvltbl.cxx b/sw/source/core/crsr/trvltbl.cxx index 92285077fc95..5f26c9f23788 100644 --- a/sw/source/core/crsr/trvltbl.cxx +++ b/sw/source/core/crsr/trvltbl.cxx @@ -55,7 +55,7 @@ bool SwCursorShell::GoNextCell( bool bAppendLine ) if ( pCursor->GetCursorRowSpanOffset() ) { pTableBox = pTableBoxStartNode->GetTableBox(); - if ( pTableBox->getRowSpan() > 1 ) + if (pTableBox && pTableBox->getRowSpan() > 1) { if ( !pTableNd ) pTableNd = IsCursorInTable(); |