pub fn check_not_null(env: &mut JNIEnv<'_>, ptr: jlong, context: &str) -> bool
Check if a Java object is null and throw exception if so