From d6d53e5bc75606b2dbb330b727f6f6595cc49e9f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 14 Nov 2014 10:06:17 +0000 Subject: coverity#706404 Uncaught exception Change-Id: I331c96a09be7a4971c3cc3c577f8f9d91333d175 --- dbaccess/source/core/dataaccess/databasedocument.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index e497c5c6b2a1..657f0cd76eb6 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -703,13 +703,14 @@ void SAL_CALL ODatabaseDocument::storeToRecoveryFile( const OUString& i_TargetLo void SAL_CALL ODatabaseDocument::recoverFromFile( const OUString& i_SourceLocation, const OUString& i_SalvagedFile, const Sequence< PropertyValue >& i_MediaDescriptor ) throw ( RuntimeException, IOException, WrappedTargetException, std::exception ) { - DocumentGuard aGuard( *this, DocumentGuard::InitMethod ); - - if ( i_SourceLocation.isEmpty() ) - throw IllegalArgumentException( OUString(), *this, 1 ); - try { + DocumentGuard aGuard( *this, DocumentGuard::InitMethod ); + + if ( i_SourceLocation.isEmpty() ) + throw IllegalArgumentException( OUString(), *this, 1 ); + + // load the document itself, by simply delegating to our "load" method // our load implementation expects the SalvagedFile and URL to be in the media descriptor -- cgit