diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-15 09:16:54 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-08-22 12:33:08 +0200 |
commit | 08b1ce131d274c0a3fbf350bd63c60ae4c3af698 (patch) | |
tree | 55fbe616cfa0072df490a903043d84d1f752b3f7 | |
parent | 610d9a1eaa496ff0f690862cb23912e2843d01a7 (diff) |
ofz#9892 Null-dereference
Change-Id: I8ab1948e5760da365bdddaf45955912a18b20ead
Reviewed-on: https://gerrit.libreoffice.org/59056
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
(cherry picked from commit a0aea0b22a5ceb31b69407be6b74506194d44134)
-rw-r--r-- | oox/source/drawingml/shapecontext.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/drawingml/shapecontext.cxx b/oox/source/drawingml/shapecontext.cxx index 404656b54e66..462518790e4c 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: |