Skip to content

Instantly share code, notes, and snippets.

@dmikushin
Created March 6, 2017 20:59
Show Gist options
  • Save dmikushin/d0397a4d7ce72fecc93413cfaecd7151 to your computer and use it in GitHub Desktop.
Save dmikushin/d0397a4d7ce72fecc93413cfaecd7151 to your computer and use it in GitHub Desktop.
JNIEXPORT jobject JNICALL Java_..._getValue(
JNIEnv *env, jobject ...)
{
...
jobject resultObj = result.toJava().getObject();
return resultObj; // Not NULL!
}
// Log shows:
// java.lang.NullPointerException:
// at ....getValue(Native Method)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment