summaryrefslogtreecommitdiff
path: root/stoc/source/javaloader/javaloader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'stoc/source/javaloader/javaloader.cxx')
-rw-r--r--stoc/source/javaloader/javaloader.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx
index 5b421b0ba253..7ff8f610c8aa 100644
--- a/stoc/source/javaloader/javaloader.cxx
+++ b/stoc/source/javaloader/javaloader.cxx
@@ -257,10 +257,7 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL
}
// set the service manager at the javaloader
- css::uno::Reference<XInitialization> javaLoader_XInitialization(m_javaLoader, UNO_QUERY);
- if(!javaLoader_XInitialization.is())
- throw RuntimeException(
- "javaloader error - initialization of java javaloader failed, no XInitialization");
+ css::uno::Reference<XInitialization> javaLoader_XInitialization(m_javaLoader, UNO_QUERY_THROW);
Any any;
any <<= css::uno::Reference<XMultiComponentFactory>(