coverity#706304 Uncaught exception

also

coverity#706301

Change-Id: Ie6eba530c9a2f822226fbd1b1a6aa49deaf99659
This commit is contained in:
Caolán McNamara
2014-06-13 13:27:23 +01:00
parent a7e184e81e
commit 1beabeb55c

View File

@@ -1071,11 +1071,11 @@ bool ODbaseTable::CreateImpl()
{
OUString aExt = aURL.getExtension();
aURL.setExtension("dbt"); // extension for memo file
Content aMemo1Content(aURL.GetMainURL(INetURLObject::NO_DECODE),Reference<XCommandEnvironment>(), comphelper::getProcessComponentContext());
bool bMemoAlreadyExists = false;
try
{
Content aMemo1Content(aURL.GetMainURL(INetURLObject::NO_DECODE),Reference<XCommandEnvironment>(), comphelper::getProcessComponentContext());
bMemoAlreadyExists = aMemo1Content.isDocument();
}
catch(const Exception&) // an exception is thrown when no file exists