summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-08-08 16:44:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-08 18:36:39 +0200
commit151c8d49e9a2b4d1445f4947b73250eab2d78ded (patch)
tree16a805127e20915e9bfcfc48a8ab6aef398afd39 /stoc
parent9eb05aa6883ea41fb1d1dad2f7f1870e8e63ce32 (diff)
Better error reporting
Change-Id: I36c6dc025d0094c0b1666e13b25d78931392f768
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/javaloader/javaloader.cxx3
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
{