freaking JNI

This commit is contained in:
Grant Limberg
2020-10-21 16:08:19 -07:00
parent fbbcf292c6
commit 3da8f5f053
3 changed files with 7 additions and 5 deletions

View File

@@ -65,8 +65,8 @@ jclass JniLookup::findClass(const std::string &name)
LOGE("Error retreiving JNI Environment");
return NULL;
}
jclass cls = env->FindClass(name.c_str());
const char *c = name.c_str();
jclass cls = env->FindClass(c);
if(env->ExceptionCheck())
{
LOGE("Error finding class: %s", name.c_str());