From a4d059e2b139e1c0b49bbbf983112e15ea2f601b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Feb 2014 14:11:04 +0200 Subject: [PATCH] cid#704734 reference after null check Change-Id: I54a51427347bdd363fc980db4c1ef1a1feb99177 --- sd/source/filter/eppt/epptso.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 6dfa1050da07..cc47322acdd5 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -286,7 +286,7 @@ sal_uInt32 PPTWriter::ImplProgBinaryTagContainer( SvStream* pStrm, SvMemoryStrea .WriteUInt32( (sal_uInt32)0x5f005f ).WriteUInt32( (sal_uInt32)0x50005f ) .WriteUInt32( (sal_uInt32)0x540050 ).WriteUInt16( (sal_uInt16)0x39 ); } - if ( pBinTagStrm ) + if ( pStrm && pBinTagStrm ) { sal_uInt32 nLen = pBinTagStrm->Tell(); nSize += nLen + 8;