JNI: How can i check if jobject is a null object in native c code

Since the objects in Java and C code actually use the same memory locations (the object passed to the native code is the same memory reference in both worlds), a simple

if (someJObject == NULL) {}

in the C code should be just fine I guess. I haven’t tested it though 🙂

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)