summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-16 12:53:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-16 20:33:49 +0200
commit08b4e947584d3e3629089cdcec50dd566c5c031c (patch)
treec02cf3e64b0365351880f236a6a224c821a77be7 /svx
parent50e2704c80b30934ba98001eb194eb5e6af56a65 (diff)
cid#705480 Dereference null return value
Change-Id: I0ad30d7a2447edbe9d42f0e69470ca850498b798 Reviewed-on: https://gerrit.libreoffice.org/75722 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdoashp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx
index 603bedcf9924..23ab67c9d1ae 100644
--- a/svx/source/svdraw/svdoashp.cxx
+++ b/svx/source/svdraw/svdoashp.cxx
@@ -1078,7 +1078,7 @@ bool SdrObjCustomShape::IsDefaultGeometry( const DefaultType eDefaultType ) cons
const OUString sViewBox( "ViewBox" );
const Any* pViewBox = const_cast<SdrCustomShapeGeometryItem&>(aGeometryItem).GetPropertyValueByName( sViewBox );
css::awt::Rectangle aViewBox;
- if ( pViewBox && ( *pViewBox >>= aViewBox ) )
+ if (pViewBox && (*pViewBox >>= aViewBox) && pDefCustomShape)
{
if ( ( aViewBox.Width == pDefCustomShape->nCoordWidth )
&& ( aViewBox.Height == pDefCustomShape->nCoordHeight ) )