cid#1448263 Dereference after null check

Change-Id: I48f5bbd0f51bed68a3a1772e17c6570248545370
Reviewed-on: https://gerrit.libreoffice.org/76109
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara
2019-07-22 11:28:55 +01:00
parent ff7015fd35
commit 04cdfa7aa0

View File

@@ -339,6 +339,7 @@ bool SwAttrIter::Seek(TextFrameIndex const nNewPos)
// items at all; it can only apply a previously effective item.
// So do this by recreating the font from scratch.
// Apply new para items:
assert(m_pMergedPara);
InitFontAndAttrHandler(*m_pMergedPara->pParaPropsNode, *newPos.first,
m_pMergedPara->mergedText, nullptr, nullptr);
// reset to next