diff options
-rw-r--r-- | stoc/source/javaloader/javaloader.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index 729132882343..7bfe44080d03 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -169,13 +169,16 @@ const css::uno::Reference<XImplementationLoader> & JavaComponentLoader::getJavaL rtl::Reference< jvmaccess::UnoVirtualMachine > xVirtualMachine( reinterpret_cast< jvmaccess::UnoVirtualMachine * >(nPointer)); if (!xVirtualMachine.is()) + { //throw RuntimeException(OUString(RTL_CONSTASCII_USTRINGPARAM( // "javaloader error - JavaVirtualMachine service could not provide a VM")), // css::uno::Reference<XInterface>()); // We must not throw a RuntimeException, because this might end the applications. // It is ok if java components // are not working because the office can be installed without Java support. + SAL_WARN("stoc", "getJavaVM returned null"); return m_javaLoader; // null-ref + } try { |