https://bugs.documentfoundation.org/show_bug.cgi?id=164077

--- Comment #7 from Julien Nabet <[email protected]> ---
With this straightforward (but perhaps naive and wrong) patch, it doesn't
crash:
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx
b/sw/source/core/doc/DocumentContentOperationsManager.cxx
index 7df477784ba7..25e652f9627c 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)
+            return false;
         bool bRet = pTextNd->IsInListFromStyle();
         //prefer list if it's a single paragraph with list from style
         if (pTextNd == pEndTextNd && bRet)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to