diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c b/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c index e96a65ad1c5..f6d66519508 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/native/hdfsJniHelper.c @@ -74,8 +74,6 @@ static void hdfsThreadDestructor(void *v) JNIEnv *env = tls->env; jint ret; - if (!tls) - return; ret = (*env)->GetJavaVM(env, &vm); if (ret) { fprintf(stderr, "hdfsThreadDestructor: GetJavaVM failed with "