summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-22 11:28:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-22 15:50:13 +0200
commit04cdfa7aa0fea15c1fc737631c62260d8a9c2312 (patch)
tree3f7ee84c99a94e887deb06de64aec7a03fbcc131 /sw
parentff7015fd3576d3908f2bbfd267c89642e95f3e38 (diff)
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
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/text/itratr.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx
index 9b1f0236ccf2..77ded3fe3edf 100644
--- a/sw/source/core/text/itratr.cxx
+++ b/sw/source/core/text/itratr.cxx
@@ -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