Skip to content

Commit

Permalink
Fix wrong class when creating new NilException
Browse files Browse the repository at this point in the history
  • Loading branch information
Noisyfox committed May 11, 2021
1 parent 9db0967 commit 3ebc36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/native/natj/NatJ.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ void JNICALL Java_org_moe_natj_general_NatJ_initialize(JNIEnv* env, jclass clazz
jclass nilExceptionClass =
env->FindClass("org/moe/natj/general/NilException");
jmethodID nilExceptionConstructorMethod =
env->GetMethodID(gNatJClass, "<init>", "()V");
env->GetMethodID(nilExceptionClass, "<init>", "()V");
gNilExceptionInstance = (jthrowable)env->NewGlobalRef(
env->NewObject(nilExceptionClass, nilExceptionConstructorMethod));

Expand Down

0 comments on commit 3ebc36f

Please sign in to comment.