summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-06-05 13:59:22 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-06-12 13:25:17 +0000
commitfbfee1dd45c85a85f692f50a790f1ce757149b0d (patch)
tree20d51454359667a04cf43f8c4202fefe6ecc0a0d /framework
parentb6d0c53e514565bf9fbe8500800f0c6ece40806e (diff)
make it easier to find missing sidebar components
Change-Id: Id962fbc20d12db59818dfca421843c674755e36c Reviewed-on: https://gerrit.libreoffice.org/16101 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uifactory/uielementfactorymanager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/uifactory/uielementfactorymanager.cxx b/framework/source/uifactory/uielementfactorymanager.cxx
index 9e47837dbd45..d2b66452bd47 100644
--- a/framework/source/uifactory/uielementfactorymanager.cxx
+++ b/framework/source/uifactory/uielementfactorymanager.cxx
@@ -505,8 +505,10 @@ throw ( RuntimeException, std::exception )
if ( !aServiceSpecifier.isEmpty() ) try
{
- return Reference< XUIElementFactory >(m_xContext->getServiceManager()->
+ Reference< XUIElementFactory > xFactory(m_xContext->getServiceManager()->
createInstanceWithContext(aServiceSpecifier, m_xContext), UNO_QUERY);
+ SAL_WARN_IF(!xFactory.is(), "fwk.uielement", "could not create factory: " << aServiceSpecifier);
+ return xFactory;
}
catch ( const css::loader::CannotActivateFactoryException& )
{