diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 09:50:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 09:50:28 +0000 |
commit | 125727c94f4970b697ef4d94b8a6e0a67135e73e (patch) | |
tree | 6cc333dbc86530c3f86fbdfc0c0204e6a3c1b4b2 /package/source | |
parent | fe0e3580e84847c46d653cee01e8e52334475192 (diff) |
coverity#706583 Uncaught exception
Change-Id: I508eb91d7c32e8604525511c33c39471afd3ffbf
Diffstat (limited to 'package/source')
-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 ) { |