xmloff/source/text/XMLIndexTOCContext.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit d71aeeadc20198121eed46daf4d5b10089279be2 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Dec 22 09:39:42 2025 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Mon Dec 22 15:25:03 2025 +0100 ofz#470644944 Null-dereference READ Change-Id: Ief869fc4237ca3052db84cac891079b7483d43e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196078 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/xmloff/source/text/XMLIndexTOCContext.cxx b/xmloff/source/text/XMLIndexTOCContext.cxx index 224f48c9589a..cf524f6b60ab 100644 --- a/xmloff/source/text/XMLIndexTOCContext.cxx +++ b/xmloff/source/text/XMLIndexTOCContext.cxx @@ -219,6 +219,13 @@ void XMLIndexTOCContext::startFastElement( } } + if (!xTOCPropertySet) + { + SAL_WARN("xmloff", "TOC Property Set unavailable"); + bValid = false; + return; + } + // finally, check for redlines that should start at // the section start node if( bValid )
