sw/source/core/doc/DocumentContentOperationsManager.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 15b5f3de87c1c23758c75f1346c457e94f1aeb15 Author: Oliver Specht <oliver.spe...@cib.de> AuthorDate: Tue Jan 7 11:17:40 2025 +0100 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Wed Jan 8 13:04:05 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> (cherry picked from commit fa9d3f5706606379f66622d51e74699b94df45d6) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179927 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 7df477784ba7..6389c67c3a2c 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)