Kaydet (Commit) b854cb78 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735747 Dereference after null check

also

coverity#736774 Dereference before null check

Change-Id: Ic2e2a341565af0609ec748b40ac7848a46c9e3af
üst 819cc643
......@@ -1857,7 +1857,7 @@ SdrObject* SdrPowerPointImport::ImportOLE( long nOLEId,
if ( !pRet && ( pOe->nType == PPT_PST_ExControl ) )
{
uno::Reference< io::XInputStream > xIStrm = new utl::OSeekableInputStreamWrapper(*pDest );
uno::Reference< frame::XModel > xModel( pOe->pShell ? pOe->pShell->GetModel() : NULL );
uno::Reference< frame::XModel > xModel( pOe->pShell->GetModel() );
PPTConvertOCXControls aPPTConvertOCXControls( this, xIStrm, xModel, eAktPageKind );
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > xShape;
if ( aPPTConvertOCXControls.ReadOCXStream( xObjStor, &xShape, sal_False ) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment