From 0c75dbd9dd8c4c90ac8e0805c35890efba0117ee Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 4 Nov 2019 15:56:26 +0100 Subject: [PATCH] Fixed null pointer exception --- app/src/main/java/org/linphone/call/CallActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/linphone/call/CallActivity.java b/app/src/main/java/org/linphone/call/CallActivity.java index 5bd4e77d0..5420af913 100644 --- a/app/src/main/java/org/linphone/call/CallActivity.java +++ b/app/src/main/java/org/linphone/call/CallActivity.java @@ -437,7 +437,7 @@ public class CallActivity extends LinphoneGenericActivity Call call = mCore.getCurrentCall(); boolean videoEnabled = LinphonePreferences.instance().isVideoEnabled() - && call.getCurrentParams().videoEnabled(); + && call != null && call.getCurrentParams().videoEnabled(); if (videoEnabled) { mAudioManager = LinphoneManager.getAudioManager(); @@ -825,7 +825,7 @@ public class CallActivity extends LinphoneGenericActivity boolean videoEnabled = LinphonePreferences.instance().isVideoEnabled() - && call.getCurrentParams().videoEnabled(); + && call != null && call.getCurrentParams().videoEnabled(); showVideoControls(videoEnabled); }