workaround fix for bug #154699, r=sdagley, sr=bryner, a=adt.

git-svn-id: svn://10.0.0.236/trunk@127674 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
2002-08-20 01:39:30 +00:00
parent afeb2d971c
commit d9e6589574

View File

@@ -120,10 +120,19 @@ nsresult InitLiveConnectSupport(MRJPlugin* jvmPlugin)
env->DeleteLocalRef(classJSObject);
netscape_javascript_JSObject_JSObject = env->GetMethodID(netscape_javascript_JSObject, "<init>", "(I)V");
if (env->ExceptionCheck()) {
env->ExceptionClear();
result = NS_ERROR_FAILURE;
}
netscape_javascript_JSObject_internal = env->GetFieldID(netscape_javascript_JSObject, "internal", "I");
if (env->ExceptionCheck()) {
env->ExceptionClear();
result = NS_ERROR_FAILURE;
}
env->RegisterNatives(netscape_javascript_JSObject, nativeMethods, sizeof(nativeMethods) / sizeof(JNINativeMethod));
if (env->ExceptionOccurred()) {
if (env->ExceptionCheck()) {
env->ExceptionClear();
result = NS_ERROR_FAILURE;
}