From 192e295a02be73692b5e07afd9908e69e42456a4 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 14 Oct 2010 15:00:51 +0100 Subject: [PATCH] avoid null pointer access exporting shape data fdo#30858 --- filter/source/msfilter/eschesdo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx index d34945cb896b..375b1a946568 100644 --- a/filter/source/msfilter/eschesdo.cxx +++ b/filter/source/msfilter/eschesdo.cxx @@ -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() )