[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Wed Dec 9 05:11:13 PST 2015
lotuswordpro/source/filter/lwpfribptr.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 9d2a1c48b4a39967bc21776b471f1a4eca735cb6
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Dec 9 13:10:27 2015 +0000
guard against missing paragraph Story
Change-Id: Iae617e9731dbdcedf8aa6bf02977911dce60bdd0
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx
index a59abc0..2d62f23 100644
--- a/lotuswordpro/source/filter/lwpfribptr.cxx
+++ b/lotuswordpro/source/filter/lwpfribptr.cxx
@@ -263,9 +263,9 @@ void LwpFribPtr::XFConvert()
case FRIB_TAG_HARDSPACE:
{
OUString sHardSpace(sal_Unicode(0x00a0));
- LwpHyperlinkMgr* pHyperlink =
- m_pPara->GetStory()->GetHyperlinkMgr();
- if (pHyperlink->GetHyperlinkFlag())
+ LwpStory *pStory = m_pPara->GetStory();
+ LwpHyperlinkMgr* pHyperlink = pStory ? pStory->GetHyperlinkMgr() : nullptr;
+ if (pHyperlink && pHyperlink->GetHyperlinkFlag())
pFrib->ConvertHyperLink(m_pXFPara,pHyperlink,sHardSpace);
else
pFrib->ConvertChars(m_pXFPara,sHardSpace);
More information about the Libreoffice-commits
mailing list