diff options
Diffstat (limited to 'javaunohelper')
-rw-r--r-- | javaunohelper/com/sun/star/comp/helper/ComponentContext.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java index 5075eb8d224d..2294af8a12bd 100644 --- a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java +++ b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java @@ -207,6 +207,11 @@ public class ComponentContext implements XComponentContext, XComponent //______________________________________________________________________________________________ public XMultiComponentFactory getServiceManager() { + if (m_xSMgr == null) + { + throw new com.sun.star.uno.RuntimeException( + "null component context service manager" ); + } return m_xSMgr; } |