From 91df94057be9f8f399469f8a0cf0476a94326629 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Fri, 26 Jun 2026 12:49:37 +0200 Subject: [PATCH] cid#1695398: Dereference after null check Change-Id: I7dba7ef5c771a1d349154027a84e0e8567c98e32 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207351 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- sw/source/filter/ww8/ww8par.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx index a6aaf9eb032f..9e4738bd5f60 100644 --- a/sw/source/filter/ww8/ww8par.cxx +++ b/sw/source/filter/ww8/ww8par.cxx @@ -2564,12 +2564,12 @@ void SwWW8ImplReader::FinalizeTextNode(SwPosition& rPos, bool bAddNew) const SwNumRule* pRule = nullptr; - if (pText != nullptr) - pRule = sw::util::GetNumRuleFromTextNode(*pText); - // tdf#64222 / tdf#150613 filter out the "paragraph marker" formatting and // set it as a separate paragraph property, just like we do for DOCX. + if (pText) { + pRule = sw::util::GetNumRuleFromTextNode(*pText); + SfxItemSet items(SfxItemSet::makeFixedSfxItemSet(m_pPaM->GetDoc().GetAttrPool()));