diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackage.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/package/source/zippackage/ZipPackage.cxx b/package/source/zippackage/ZipPackage.cxx index 7543bc6da55c..92e34a108b69 100644 --- a/package/source/zippackage/ZipPackage.cxx +++ b/package/source/zippackage/ZipPackage.cxx @@ -1378,8 +1378,16 @@ void SAL_CALL ZipPackage::commitChanges() static_cast < OWeakObject * > ( this ), makeAny ( r ) ); } - // connect to the temporary stream - ConnectTo( xTempInStream ); + try + { + // connect to the temporary stream + ConnectTo( xTempInStream ); + } + catch( const io::IOException& r ) + { + throw WrappedTargetException(THROW_WHERE "Temporary file should be connectable!", + static_cast < OWeakObject * > ( this ), makeAny ( r ) ); + } if ( m_eMode == e_IMode_XStream ) { |