From 151c8d49e9a2b4d1445f4947b73250eab2d78ded Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Aug 2012 16:44:57 +0200 Subject: Better error reporting Change-Id: I36c6dc025d0094c0b1666e13b25d78931392f768 --- stoc/source/javaloader/javaloader.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'stoc') 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 & 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()); // 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 { -- cgit