Commit 011db1f6 authored by Sylvain Berfini's avatar Sylvain Berfini :cow:
Browse files

getCurrentParamsCopy can return null

parent e43709fd
No related merge requests found
Showing with 3 additions and 0 deletions
...@@ -1562,6 +1562,9 @@ extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getRemoteParams(JNIEnv ...@@ -1562,6 +1562,9 @@ extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getRemoteParams(JNIEnv
} }
extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getCurrentParamsCopy(JNIEnv *env, jobject thiz, jlong lc){ extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getCurrentParamsCopy(JNIEnv *env, jobject thiz, jlong lc){
if (linphone_call_get_current_params((LinphoneCall*)lc) == NULL) {
return (jlong) 0;
}
return (jlong) linphone_call_params_copy(linphone_call_get_current_params((LinphoneCall*)lc)); return (jlong) linphone_call_params_copy(linphone_call_get_current_params((LinphoneCall*)lc));
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment