[Libreoffice-commits] core.git: sw/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Jan 9 11:59:58 UTC 2021


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

New commits:
commit 4ab5ada96c4c6ad0b076ba6ad55e5840fff99397
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jan 8 19:35:34 2021 +0000
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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();


More information about the Libreoffice-commits mailing list