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(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 ) )