[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - lotuswordpro/source

Caolán McNamara caolanm at redhat.com
Thu Dec 31 23:28:47 PST 2015


 lotuswordpro/source/filter/lwpfribmark.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 934e28385b5e7462a36780a04a08013d00924fb5
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sun Dec 27 20:14:27 2015 +0000

    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 at libreoffice.org>
    Reviewed-by: David Tardon <dtardon at redhat.com>

diff --git a/lotuswordpro/source/filter/lwpfribmark.cxx b/lotuswordpro/source/filter/lwpfribmark.cxx
index 143a00f..2a51e0e 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();


More information about the Libreoffice-commits mailing list