OSDN Git Service

Fix the obvois wrong test in methodIsPublic function.
authorVadim Lebedev <vadim@mbdsys.com>
Sat, 21 Feb 2009 21:01:44 +0000 (22:01 +0100)
committerVadim Lebedev <vadim@mbdsys.com>
Sat, 21 Feb 2009 21:01:44 +0000 (22:01 +0100)
dalvikvm/Main.c

index 70cc61f..a6439fb 100644 (file)
@@ -115,7 +115,7 @@ static int methodIsPublic(JNIEnv* env, jclass clazz, jmethodID methodId)
     }
     getModifiersId = (*env)->GetMethodID(env, methodClass,
                         "getModifiers", "()I");
-    if (methodClass == NULL) {
+    if (getModifiersId == NULL) {
         fprintf(stderr, "Dalvik VM unable to find reflect.Method.getModifiers\n");
         goto bail;
     }