]> sjero.net Git - linphone/blobdiff - coreapi/linphonecore_jni.cc
Previous fix cancelled, real fix applied
[linphone] / coreapi / linphonecore_jni.cc
index d7294356c98140e3d774ef08997fe0674e7be13d..16d44390c458b93e7e4928ee0612282eb6acc14c 100644 (file)
@@ -1558,13 +1558,13 @@ extern "C" jlong Java_org_linphone_core_LinphoneCoreImpl_createDefaultCallParams
 }
 
 extern "C" jlong Java_org_linphone_core_LinphoneCallImpl_getRemoteParams(JNIEnv *env, jobject thiz, jlong lc){
+       if (linphone_call_get_remote_params((LinphoneCall*)lc) == NULL) {
+                       return (jlong) 0;
+       }
        return (jlong) linphone_call_params_copy(linphone_call_get_remote_params((LinphoneCall*)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));
 }