freaking JNI

This commit is contained in:
Grant Limberg 2020-10-21 16:08:19 -07:00
parent fbbcf292c6
commit 3da8f5f053
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
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());