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

bff: terminate on SAXException on malformed input

SAXException thrown and not caught

Change-Id: I874ffbcd457e102b572f398f4e531f4be30ca3d3
üst 899e4725
...@@ -5186,7 +5186,28 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OStorage::getAllRel ...@@ -5186,7 +5186,28 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OStorage::getAllRel
if ( m_pData->m_nStorageType != embed::StorageFormats::OFOPXML ) if ( m_pData->m_nStorageType != embed::StorageFormats::OFOPXML )
throw uno::RuntimeException( THROW_WHERE ); throw uno::RuntimeException( THROW_WHERE );
return m_pImpl->GetAllRelationshipsIfAny(); uno::Sequence< uno::Sequence< beans::StringPair > > aRet;
try
{
aRet = m_pImpl->GetAllRelationshipsIfAny();
}
catch (const io::IOException&)
{
throw;
}
catch (const uno::RuntimeException&)
{
throw;
}
catch (const uno::Exception &)
{
uno::Any aCaught( ::cppu::getCaughtException() );
throw lang::WrappedTargetRuntimeException(THROW_WHERE "Can't getAllRelationships!",
uno::Reference< uno::XInterface >(),
aCaught);
}
return aRet;
} }
void SAL_CALL OStorage::insertRelationshipByID( const OUString& sID, const uno::Sequence< beans::StringPair >& aEntry, sal_Bool bReplace ) void SAL_CALL OStorage::insertRelationshipByID( const OUString& sID, const uno::Sequence< beans::StringPair >& aEntry, sal_Bool bReplace )
......
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