Fix JNI warning

Use CallVoidMethod() instead of CallObjectMethod()