summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-27 20:14:27 +0000
committerDavid Tardon <dtardon@redhat.com>2016-01-01 07:28:07 +0000
commit934e28385b5e7462a36780a04a08013d00924fb5 (patch)
treefd480a00e1145301de87a4b20243d342b085414f /lotuswordpro
parent7f4fcdbda41753c7923974c0af58271e38cdabe3 (diff)
guard against missing Foundry
Change-Id: I5ba66ff020b8226ac01af985f68c3ef67057c01a (cherry picked from commit 7f9b57bda4d88262ecbe45188888c744913b9770) (cherry picked from commit 5ae038d2341e4a7f8dedb77be75efd557d01bcc9) Reviewed-on: https://gerrit.libreoffice.org/20967 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwpfribmark.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx
index 143a00f9365f..2a51e0ea8295 100644
--- a/lotuswordpro/source/filter/lwpfribmark.cxx
+++ b/lotuswordpro/source/filter/lwpfribmark.cxx
@@ -136,12 +136,12 @@ void LwpFribCHBlock::XFConvert(XFContentContainer* pXFPara,LwpStory* pStory)
void LwpFribBookMark::RegisterStyle(LwpFoundry* pFoundry)
{
OUString name;
- LwpBookMark* pBook = pFoundry->GetBookMark(GetMarkerID());
+ LwpBookMark* pBook = pFoundry ? pFoundry->GetBookMark(GetMarkerID()) : nullptr;
if (pBook)
name = pBook->GetName();
OUString sDivision;
- LwpDocument* pDoc = pFoundry->GetDocument();
+ LwpDocument* pDoc = pFoundry ? pFoundry->GetDocument() : nullptr;
if (pDoc)
{
LwpObjectID& rID = pDoc->GetDivInfoID();