diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 10:00:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-30 10:00:04 +0000 |
commit | 2bc6b0d5f06a4608f9bb43bdc0775b9e59e7126b (patch) | |
tree | 292c0df8263c393866c0729ee05213e100b4beef /package/source | |
parent | 6bff65dfa66cfeb115c7db6cf2e4d6e5df323703 (diff) |
coverity#706568 Uncaught exception
Change-Id: I05a7700b782d63654406139532a775173295ea9f
Diffstat (limited to 'package/source')
-rw-r--r-- | package/source/xstor/owriteablestream.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index facd49406d17..4e5061b23294 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -2174,7 +2174,15 @@ uno::Reference< io::XOutputStream > SAL_CALL OWriteStream::getOutputStream() { ::osl::MutexGuard aGuard( m_pData->m_rSharedMutexRef->GetMutex() ); - CheckInitOnDemand(); + try + { + CheckInitOnDemand(); + } + catch( const io::IOException& r ) + { + throw lang::WrappedTargetRuntimeException("OWriteStream::getOutputStream: Could not create backing temp file", + static_cast < OWeakObject * > ( this ), makeAny ( r ) ); + } if ( !m_pImpl ) { |