diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-09-17 19:12:34 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-17 19:12:34 +0200 |
commit | d2092dc56b19c24b481f64fa9708f4ed3f9c8dfb (patch) | |
tree | 5937cba7d2631472474897e01e0d5854c5258c88 /cppuhelper | |
parent | 1b699e5c20577298624dbc86196f6421c386915b (diff) |
Keep null service manager throw a DeploymentException
...rather than a general RuntimeException, for consistency with existing service
ctor code.
Change-Id: Ia9ac14a1b5bcecb24394e7b9cade369f3f9303f0
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/component_context.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index ac416f1745f9..4ad3e13ce6af 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -60,6 +60,7 @@ #include <com/sun/star/lang/XMultiComponentFactory.hpp> #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include "com/sun/star/uno/DeploymentException.hpp" #include "com/sun/star/uno/RuntimeException.hpp" #include <memory> @@ -674,7 +675,7 @@ Reference< lang::XMultiComponentFactory > ComponentContext::getServiceManager() { if ( !m_xSMgr.is() ) { - throw RuntimeException( + throw DeploymentException( "null component context service manager", static_cast<OWeakObject *>(this) ); } |