From: Sylvain Berfini Date: Thu, 20 Sep 2012 15:59:02 +0000 (+0200) Subject: GetRemoteParams returns null if needed X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=ade685701ff4c4c20f79b5c5225de48d25ca5f3e GetRemoteParams returns null if needed --- diff --git a/LinphoneCallImpl.java b/LinphoneCallImpl.java index 5d886d43..e73a8aac 100644 --- a/LinphoneCallImpl.java +++ b/LinphoneCallImpl.java @@ -76,7 +76,11 @@ class LinphoneCallImpl implements LinphoneCall { return new LinphoneCallParamsImpl(getCurrentParamsCopy(nativePtr)); } public LinphoneCallParams getRemoteParams() { - return new LinphoneCallParamsImpl(getRemoteParams(nativePtr)); + long remoteParamsPtr = getRemoteParams(nativePtr); + if (remoteParamsPtr == 0) { + return null; + } + return new LinphoneCallParamsImpl(remoteParamsPtr); } public void enableCamera(boolean enabled) { enableCamera(nativePtr, enabled);