jboolean is_copy; const jchar* property_name_ucs2 = env->GetStringChars(property_name_jstr, &is_copy); jsize property_name_len = env->GetStringLength(property_name_jstr);
MRJPluginInstance* pluginInstance = GetCurrentInstance(env); if (pluginInstance == NULL) { env->ThrowNew(env->FindClass("java/lang/NullPointerException"), "illegal JNIEnv (can't find plugin)"); return NULL; }
Java_netscape_javascript_JSObject_getMember(JNIEnv* env,                                            jobject java_wrapper_obj,                                            jstring property_name_jstr){	if (property_name_jstr == NULL) {		env->ThrowNew(env->FindClass("java/lang/NullPointerException"), "illegal null member name");		return NULL;	}	/* Get the Unicode string for the JS property name */	jboolean is_copy;	const jchar* property_name_ucs2 = env->GetStringChars(property_name_jstr, &is_copy);	jsize property_name_len = env->GetStringLength(property_name_jstr);	jsobject js_obj = Unwrap_JSObject(env, java_wrapper_obj);	jobject member = NULL;	GetMemberMessage msg(js_obj, property_name_ucs2, property_name_len, &member);		sendMessage(env, &msg);	// convert the resulting reference back to a local reference.	if (member != NULL)		member = ToLocalRef(env, member);		env->ReleaseStringChars(property_name_jstr, property_name_ucs2);    return member;}