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 <xiscofauli@libreoffice.org>
This commit is contained in:
@@ -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<RES_CHRATR_BEGIN, RES_CHRATR_END - 1, RES_TXTATR_CHARFMT,
|
||||
RES_TXTATR_CHARFMT, RES_UNKNOWNATR_BEGIN, RES_UNKNOWNATR_END - 1>(m_pPaM->GetDoc().GetAttrPool()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user