From ddc7d96a399822c2f29dcaca8222dfb96c383576 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 13 Dec 2015 11:04:43 +0000 Subject: protect against missing Foundry Change-Id: Ie5c0317f842258fe42f894dbace0ea0e328f288a --- lotuswordpro/source/filter/lwppagelayout.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lotuswordpro/source') diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx index 35476618df7e..e7fd45d272db 100644 --- a/lotuswordpro/source/filter/lwppagelayout.cxx +++ b/lotuswordpro/source/filter/lwppagelayout.cxx @@ -576,6 +576,8 @@ sal_Int32 LwpPageLayout::GetPageNumber(sal_uInt16 nLayoutNumber) { sal_Int16 nPageNumber = -1; LwpFoundry* pFoundry = this->GetFoundry(); + if (!pFoundry) + return nPageNumber; LwpDocument* pDoc = pFoundry->GetDocument(); LwpDLVListHeadTailHolder* pHeadTail = dynamic_cast(pDoc->GetPageHintsID().obj().get()); if(!pHeadTail) return nPageNumber; -- cgit