diff --git a/main/svx/source/unodraw/unoshape.cxx b/main/svx/source/unodraw/unoshape.cxx index a7bea0c..864db3a 100644 --- a/main/svx/source/unodraw/unoshape.cxx +++ b/main/svx/source/unodraw/unoshape.cxx @@ -284,7 +284,7 @@ void SvxShape::TakeSdrObjectOwnership() bool SvxShape::HasSdrObjectOwnership() const { - if ( !mpImpl->mbHasSdrObjectOwnership ) + if (mpImpl!=NULL && !mpImpl->mbHasSdrObjectOwnership ) return false; OSL_ENSURE( mpObj.is(), "SvxShape::HasSdrObjectOwnership: have the ownership of an object which I don't know!" );