summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-03-04 15:31:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-03-04 22:37:41 +0100
commitf3226c540d45deefb08b30170fc8b2511742711c (patch)
tree75a14530b7777103b0a18e8b0b8e40e810c1605c /oox
parent5541b7b1dd0d683a7018f7499aec4dbe6626a25a (diff)
cid#1500524 Dereference after null check
Change-Id: Ic76f1b4992f51bdfe10406734ce00135607db357 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131001 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/shape.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index d0ab82501c71..98401179d84d 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -1728,7 +1728,7 @@ Reference< XShape > const & Shape::createAndInsert(
}
// in some cases, we don't have any text body.
- if( getTextBody() && ( !bDoNotInsertEmptyTextBody || !mpTextBody->isEmpty() ) )
+ if( mpTextBody && ( !bDoNotInsertEmptyTextBody || !mpTextBody->isEmpty() ) )
{
Reference < XText > xText( mxShape, UNO_QUERY );
if ( xText.is() ) // not every shape is supporting an XText interface (e.g. GroupShape)