summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-12-27 20:14:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-12-27 20:16:02 +0000
commit5ae038d2341e4a7f8dedb77be75efd557d01bcc9 (patch)
tree2f4846aac2161bdb621fc4ed1826d896ea440334 /lotuswordpro
parent3e95c29d526fb57bd22615f0ba2e3d814a5edc7d (diff)
guard against missing Foundry
Change-Id: I5ba66ff020b8226ac01af985f68c3ef67057c01a (cherry picked from commit 7f9b57bda4d88262ecbe45188888c744913b9770)
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 e6824c3c935d..f562e38baf47 100644
--- a/lotuswordpro/source/filter/lwpfribmark.cxx
+++ b/lotuswordpro/source/filter/lwpfribmark.cxx
@@ -128,12 +128,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();