[Libreoffice-commits] .: filter/source

Noel Power noelp at kemper.freedesktop.org
Thu Oct 14 07:05:19 PDT 2010


 filter/source/msfilter/eschesdo.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 61cf1917835f151155fef55c57e42b4bd57ed669
Author: Noel Power <noel.power at novell.com>
Date:   Thu Oct 14 15:00:51 2010 +0100

    avoid null pointer access exporting shape data fdo#30858

diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx
index f514a87..435d080 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() )


More information about the Libreoffice-commits mailing list