mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 11:56:51 +00:00
Fix for bug #76677. r=beard, sr=brendan, a=asa.
This commit is contained in:
parent
892a6cc261
commit
a749080995
@ -141,12 +141,16 @@ JVM_AddToClassPath(const char* dirPath)
|
||||
static nsIJVMConsole*
|
||||
GetConsole(void)
|
||||
{
|
||||
nsIJVMConsole* console = NULL;
|
||||
// PENDING(edburns): workaround for bug 76677, make sure the JVM is
|
||||
// started.
|
||||
JNIEnv* env = JVM_GetJNIEnv();
|
||||
if (!env)
|
||||
return nsnull;
|
||||
|
||||
nsIJVMConsole* console = nsnull;
|
||||
nsIJVMPlugin* jvm = GetRunningJVM();
|
||||
if (jvm) {
|
||||
if (jvm)
|
||||
jvm->QueryInterface(kIJVMConsoleIID, (void**)&console);
|
||||
// jvm->Release(); // GetRunningJVM no longer calls AddRef
|
||||
}
|
||||
return console;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user