summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-14 10:06:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-14 12:02:47 +0000
commitd6d53e5bc75606b2dbb330b727f6f6595cc49e9f (patch)
tree14daa365f557a99a5dbb705ebfd2cc54378f196f /dbaccess
parent275eb9c78e90c484dfb985303a75969659270ed7 (diff)
coverity#706404 Uncaught exception
Change-Id: I331c96a09be7a4971c3cc3c577f8f9d91333d175
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx11
1 files changed, 6 insertions, 5 deletions
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