我需要这样调用本机方法:
爪哇代码:
private native Object SendFiles(String strEmail, DeviceInfo info, String [] arrFiles, int cntFiles, ID idRequest);
调用 SendFiles();
SendFiles(strEmail, null, arrFiles, cntFiles, requestID);
和 C++ 代码:
jobject Java_com_xxxxx_xxxxx_controller_CoreController_SendFiles(JNIEnv *pEnv, jobject obj, jstring strEmail, jobject jinfo, jobjectArray jarrFiles, jint cntFiles, jobject jidRequest){
.........
if(jinfo == NULL) // here crashes !!!!!!!
doSomething();
............
}
Java 'null' 可以发送到 c 'NULL' 吗?
我怎么能这样做?