[Libreoffice-commits] core.git: writerfilter/source

Caolán McNamara caolanm at redhat.com
Fri Oct 20 11:05:38 UTC 2017


 writerfilter/source/dmapper/DomainMapper_Impl.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 1f4674c7c123a667f4febbbb96b1a1d0e083f19c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 20 12:04:09 2017 +0100

    Resolves: tdf#113230 crash in finishParagraph
    
    Change-Id: I94535a51a87be097ff7356edff935877b42c3272
    Reviewed-on: https://gerrit.libreoffice.org/43598
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 6870e5ff335c..6a4677f7ddf0 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -4857,7 +4857,10 @@ void DomainMapper_Impl::StartOrEndBookmark( const OUString& rId )
             {
                 uno::Reference< text::XTextCursor > xCursor = xTextAppend->createTextCursorByRange( xTextAppend->getEnd() );
 
-                if(!bIsAfterDummyPara)
+                if (!xCursor)
+                    return;
+
+                if (!bIsAfterDummyPara)
                     bIsStart = !xCursor->goLeft(1, false);
                 xCurrent = xCursor->getStart();
             }


More information about the Libreoffice-commits mailing list