6753795: HotSpot crash in strlen() when JVMTI is used

Test for null instead of strlen

Reviewed-by: rasbold
This commit is contained in:
Tom Rodriguez 2008-09-30 11:56:01 -07:00
parent ac161a1e17
commit d40b6daac9

View File

@ -121,7 +121,7 @@ JvmtiEnvBase::JvmtiEnvBase() : _env_event_enable() {
JvmtiEventController::env_initialize((JvmtiEnv*)this);
#ifdef JVMTI_TRACE
_jvmti_external.functions = strlen(TraceJVMTI)? &jvmtiTrace_Interface : &jvmti_Interface;
_jvmti_external.functions = TraceJVMTI != NULL ? &jvmtiTrace_Interface : &jvmti_Interface;
#else
_jvmti_external.functions = &jvmti_Interface;
#endif