sw/source/core/crsr/trvltbl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 4ab5ada96c4c6ad0b076ba6ad55e5840fff99397
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Jan 8 19:35:34 2021 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Jan 9 12:59:11 2021 +0100

    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 <caol...@redhat.com>

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();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to