From ade685701ff4c4c20f79b5c5225de48d25ca5f3e Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 20 Sep 2012 17:59:02 +0200 Subject: [PATCH] GetRemoteParams returns null if needed --- LinphoneCallImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.39.2