sw/source/core/edit/edsect.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 545179ee711381b641dd6a34e46722353f2b2488
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Fri Mar 8 17:35:00 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Mar 19 18:51:18 2024 +0100

    tdf#160095: fix crash when using ALT+RETURN twice
    
    Change-Id: Idc4c84039115c8d88418246a17e281c26fb49b70
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164592
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    (cherry picked from commit 82e6236cd6ba6f45aa913a3be606e6b00f81fe07)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164614
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    (cherry picked from commit ad5bd68124f5cd63c1ac9f2b92b25d6a02ecfb97)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164624
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>
    Tested-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/edit/edsect.cxx b/sw/source/core/edit/edsect.cxx
index daaa7296e81e..070a37a90d2f 100644
--- a/sw/source/core/edit/edsect.cxx
+++ b/sw/source/core/edit/edsect.cxx
@@ -316,6 +316,9 @@ static const SwNode* lcl_SpecialInsertNode(const 
SwPosition* pCurrentPos)
         // find the table/section which is close
         if( pTableNode == nullptr )
         {
+            if( pSectionNode == nullptr )
+                return nullptr;
+
             pInnermostNode = pSectionNode;
             pSection = &static_cast<const 
SwSectionNode*>(pSectionNode)->GetSection();
         }

Reply via email to