sw/source/core/doc/DocumentContentOperationsManager.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit de931a804181c4f317a8a6e65c4902ec9a257986 Author: Oliver Specht <oliver.spe...@cib.de> AuthorDate: Tue Jan 7 11:17:40 2025 +0100 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Mon Feb 3 20:21:10 2025 +0100 tdf#164621 Fix regression from 3e9658a201f60dee95bd1bd8421b18bf8905c308 Change-Id: I1026ae18bf9bb86b506e4ef1782b9f3aa5ae7125 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179876 Tested-by: allotropia jenkins <jenk...@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de> diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 3d743c949458..5cc904419a74 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(); //single paragraphs are preferred only if it's a has a list from style if (pTextNd == pEndTextNd)