avoid null pointer access exporting shape data fdo#30858

This commit is contained in:
Noel Power 2010-10-14 15:00:51 +01:00
parent 0e70d593ef
commit 192e295a02

View file

@ -245,7 +245,7 @@ UINT32 ImplEESdrWriter::ImplWriteShape( ImplEESdrObject& rObj,
// #i51348# shape name
if( aShapeName.Len() > 0 )
aPropOpt.AddOpt( ESCHER_Prop_wzName, aShapeName );
if ( InteractionInfo* pInteraction = mpHostAppData->GetInteractionInfo() )
if ( InteractionInfo* pInteraction = mpHostAppData ? mpHostAppData->GetInteractionInfo():NULL )
{
const std::auto_ptr< SvMemoryStream >& pMemStrm = pInteraction->getHyperlinkRecord();
if ( pMemStrm.get() )