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

fix unhandled exception terminate on ooo48061-1.sxw

Change-Id: Ibacb94e719f42faa87ece48051ed8f72c3c78d02
üst f46e3920
......@@ -244,10 +244,20 @@ uno::Any SAL_CALL OZipFileAccess::getByName( const OUString& aName )
if ( aIter == m_pZipFile->GetEntryHash().end() )
throw container::NoSuchElementException(THROW_WHERE );
uno::Reference< io::XInputStream > xEntryStream( m_pZipFile->getDataStream( (*aIter).second,
::rtl::Reference< EncryptionData >(),
false,
m_aMutexHolder ) );
uno::Reference< io::XInputStream > xEntryStream;
try
{
xEntryStream = m_pZipFile->getDataStream((*aIter).second,
::rtl::Reference< EncryptionData >(),
false,
m_aMutexHolder);
}
catch (const io::IOException& e)
{
throw lang::WrappedTargetException( "This package is unusable!",
static_cast < OWeakObject * > ( this ),
makeAny(e));
}
if ( !xEntryStream.is() )
throw uno::RuntimeException(THROW_WHERE );
......
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