summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx
index 4fce39de0b35..51a3457f7668 100644
--- a/dbaccess/source/core/dataaccess/databasedocument.cxx
+++ b/dbaccess/source/core/dataaccess/databasedocument.cxx
@@ -2108,16 +2108,15 @@ uno::Reference< frame::XUntitledNumbers > ODatabaseDocument::impl_getUntitledHel
m_xModuleManager.set( ModuleManager::create(m_pImpl->m_aContext) );
OUString sModuleId;
- try
+ uno::Reference< frame::XUntitledNumbers > xNumberedControllers;
+ TNumberedController::const_iterator aFind = m_aNumberedControllers.end();
+
+ if (_xComponent.is())
{
sModuleId = m_xModuleManager->identify( _xComponent );
+ aFind = m_aNumberedControllers.find(sModuleId);
}
- catch(const uno::Exception&)
- {
- }
- uno::Reference< frame::XUntitledNumbers > xNumberedControllers;
- TNumberedController::const_iterator aFind = m_aNumberedControllers.find(sModuleId);
if ( aFind == m_aNumberedControllers.end() )
{
rtl::Reference<::comphelper::NumberedCollection> pHelper = new ::comphelper::NumberedCollection();