summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-09 13:10:27 +0000
committerMichael Stahl <mstahl@redhat.com>2015-12-10 15:22:44 +0000
commit20f59bf1fb20bece669e5d4a2606a021384cd54a (patch)
tree63bb0b5dc8f9788a79bc756f88f67bdf8c9bfa78
parentb1d710430aa8ea49664cc766504eb6260a2ef7cd (diff)
guard against missing paragraph Story
Change-Id: Iae617e9731dbdcedf8aa6bf02977911dce60bdd0 (cherry picked from commit 9d2a1c48b4a39967bc21776b471f1a4eca735cb6) Reviewed-on: https://gerrit.libreoffice.org/20527 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--lotuswordpro/source/filter/lwpfribptr.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx
index 4f3211a61dc0..79486a2d474c 100644
--- a/lotuswordpro/source/filter/lwpfribptr.cxx
+++ b/lotuswordpro/source/filter/lwpfribptr.cxx
@@ -269,9 +269,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);