diff options
author | Kay Ramme <kr@openoffice.org> | 2001-08-08 15:33:43 +0000 |
---|---|---|
committer | Kay Ramme <kr@openoffice.org> | 2001-08-08 15:33:43 +0000 |
commit | b4a8d6c4e8a9055839503f6fc6601d775759164c (patch) | |
tree | c93598197ac7ce08a34bcd89302be2b4cc92c0a4 /sj2/source | |
parent | e0f37c1f1de7891eea0a72059c02a12b05b86260 (diff) |
provied a dummy docBase (#79689#)
Diffstat (limited to 'sj2/source')
-rw-r--r-- | sj2/source/jscpp/sjapplet_impl.cxx | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/sj2/source/jscpp/sjapplet_impl.cxx b/sj2/source/jscpp/sjapplet_impl.cxx index 784bfa72e417..c20a16706193 100644 --- a/sj2/source/jscpp/sjapplet_impl.cxx +++ b/sj2/source/jscpp/sjapplet_impl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: sjapplet_impl.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: kr $ $Date: 2001-08-08 14:03:32 $ + * last change: $Author: kr $ $Date: 2001-08-08 16:33:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -116,6 +116,9 @@ static void testJavaException(JNIEnv * pEnv) throw(com::sun::star::uno::Runtime { jthrowable jtThrowable = pEnv->ExceptionOccurred(); if(jtThrowable) { // is it a java exception ? +#ifdef DEBUG + pEnv->ExceptionDescribe(); +#endif pEnv->ExceptionClear(); jclass jcThrowable = pEnv->FindClass("java/lang/Throwable"); @@ -334,6 +337,9 @@ void SjApplet2_Impl::init(Window * pParentWin, // Java URL erzeugen OUString url = rDocBase.GetMainURL(); + if(!url.getLength()) + url = OUString(RTL_CONSTASCII_USTRINGPARAM("file:///")); + if (url.getLength()) { //WorkAround, weil Java mit dem | nicht zurecht kommt if(rDocBase.GetProtocol() == INET_PROT_FILE && url.pData->buffer[9] == INET_ENC_DELIM_TOKEN) { @@ -345,6 +351,12 @@ void SjApplet2_Impl::init(Window * pParentWin, } } + +#ifdef DEBUG + OString tmp = OUStringToOString(url, RTL_TEXTENCODING_ASCII_US); + OSL_TRACE("SjApplet2_Impl::init - mainUrl: %s\n", tmp.getStr()); +#endif + _xJavaVM = Reference<XJavaVM>(smgr->createInstance(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.java.JavaVirtualMachine"))), UNO_QUERY); _xJavaThreadRegister_11 = Reference<XJavaThreadRegister_11>(_xJavaVM, UNO_QUERY); |