Fixed null pointer exception
This commit is contained in:
parent
ef1c04eab5
commit
0c75dbd9dd
1 changed files with 2 additions and 2 deletions
|
@ -437,7 +437,7 @@ public class CallActivity extends LinphoneGenericActivity
|
||||||
Call call = mCore.getCurrentCall();
|
Call call = mCore.getCurrentCall();
|
||||||
boolean videoEnabled =
|
boolean videoEnabled =
|
||||||
LinphonePreferences.instance().isVideoEnabled()
|
LinphonePreferences.instance().isVideoEnabled()
|
||||||
&& call.getCurrentParams().videoEnabled();
|
&& call != null && call.getCurrentParams().videoEnabled();
|
||||||
|
|
||||||
if (videoEnabled) {
|
if (videoEnabled) {
|
||||||
mAudioManager = LinphoneManager.getAudioManager();
|
mAudioManager = LinphoneManager.getAudioManager();
|
||||||
|
@ -825,7 +825,7 @@ public class CallActivity extends LinphoneGenericActivity
|
||||||
|
|
||||||
boolean videoEnabled =
|
boolean videoEnabled =
|
||||||
LinphonePreferences.instance().isVideoEnabled()
|
LinphonePreferences.instance().isVideoEnabled()
|
||||||
&& call.getCurrentParams().videoEnabled();
|
&& call != null && call.getCurrentParams().videoEnabled();
|
||||||
showVideoControls(videoEnabled);
|
showVideoControls(videoEnabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue