From c8fe3f1d98d4bf3036a9b0ce3114e4f0ba9c2aea 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 --- src/org/linphone/core/LinphoneCallImpl.java | 6 +++++- submodules/linphone | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/core/LinphoneCallImpl.java b/src/org/linphone/core/LinphoneCallImpl.java index 5d886d43e..e73a8aacf 100644 --- a/src/org/linphone/core/LinphoneCallImpl.java +++ b/src/org/linphone/core/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); diff --git a/submodules/linphone b/submodules/linphone index a1961faa4..b94ed904f 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit a1961faa44b1306e5c04285a00ec98ccd9328ff9 +Subproject commit b94ed904fdfda543a16a6297014f8ff6aff4e876