summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnative/lib/jcl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/native/lib/jcl.c b/native/lib/jcl.c
index 2594ef364..551af6dfa 100755
--- a/native/lib/jcl.c
+++ b/native/lib/jcl.c
@@ -70,9 +70,9 @@ JNIEXPORT jint JNICALL JCL_MonitorExit(JNIEnv * env, jobject o) {
}
JNIEXPORT jclass JNICALL JCL_FindClass(JNIEnv * env, char * className) {
- jint retval = (*env)->FindClass(env,className);
- if(retval != 0) {
+ jclass retval = (*env)->FindClass(env,className);
+ if(retval != NULL) {
JCL_ThrowException(env, "java/lang/ClassNotFoundException", className);
}
return retval;
-} \ No newline at end of file
+}