[Libreoffice-commits] core.git: Branch 'libreoffice-6-1' - oox/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Aug 16 09:56:21 UTC 2018


 oox/source/drawingml/shapecontext.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit a0aea0b22a5ceb31b69407be6b74506194d44134
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Aug 15 09:16:54 2018 +0100
Commit:     Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
CommitDate: Thu Aug 16 11:55:57 2018 +0200

    ofz#9892 Null-dereference
    
    Change-Id: I8ab1948e5760da365bdddaf45955912a18b20ead
    Reviewed-on: https://gerrit.libreoffice.org/59056
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx
index 03ae290cc1ea..21cc6b329ed3 100644
--- a/oox/source/drawingml/shapecontext.cxx
+++ b/oox/source/drawingml/shapecontext.cxx
@@ -100,7 +100,9 @@ ContextHandlerRef ShapeContext::onCreateContext( sal_Int32 aElementToken, const
     }
     case XML_txXfrm:
     {
-        mpShapePtr->getTextBody()->getTextProperties().moRotation = rAttribs.getInteger( XML_rot );
+        const TextBodyPtr& rShapePtr = mpShapePtr->getTextBody();
+        if (rShapePtr)
+            rShapePtr->getTextProperties().moRotation = rAttribs.getInteger( XML_rot );
         return nullptr;
     }
     case XML_cNvSpPr:


More information about the Libreoffice-commits mailing list