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 /javaunohelper | |
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 'javaunohelper')
-rw-r--r-- | javaunohelper/com/sun/star/comp/helper/ComponentContext.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java index 2294af8a12bd..c47d623dcfa8 100644 --- a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java +++ b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java @@ -20,6 +20,7 @@ package com.sun.star.comp.helper; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.Any; +import com.sun.star.uno.DeploymentException; import com.sun.star.uno.XComponentContext; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XSingleComponentFactory; @@ -209,7 +210,7 @@ public class ComponentContext implements XComponentContext, XComponent { if (m_xSMgr == null) { - throw new com.sun.star.uno.RuntimeException( + throw new DeploymentException( "null component context service manager" ); } return m_xSMgr; |