sw/source/core/doc/DocumentContentOperationsManager.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit fa9d3f5706606379f66622d51e74699b94df45d6
Author:     Oliver Specht <oliver.spe...@cib.de>
AuthorDate: Tue Jan 7 11:17:40 2025 +0100
Commit:     Oliver Specht <oliver.spe...@cib.de>
CommitDate: Wed Jan 8 07:19:14 2025 +0100

    tdf#164621 Fix regression from 3e9658a201f60dee95bd1bd8421b18bf8905c308
    
    Change-Id: I1026ae18bf9bb86b506e4ef1782b9f3aa5ae7125
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179874
    Tested-by: Jenkins
    Reviewed-by: Oliver Specht <oliver.spe...@cib.de>

diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx 
b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 22d52654e612..c26b9198c3da 100644
--- a/sw/source/core/doc/DocumentContentOperationsManager.cxx
+++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx
@@ -488,6 +488,8 @@ namespace
     {
         const SwTextNode* pTextNd = rPam.Start()->GetNode().GetTextNode();
         const SwTextNode* pEndTextNd = rPam.End()->GetNode().GetTextNode();
+        if (pTextNd == nullptr || pEndTextNd == nullptr)
+            return false;
         bool bRet = pTextNd->IsInListFromStyle();
         //prefer list if it's a single paragraph with list from style
         if (pTextNd == pEndTextNd && bRet)

Reply via email to