Fix nullpointerexception if cancel addcall while another call is in pause
This commit is contained in:
parent
3da20210ba
commit
3fc1447ce6
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ public class DialerActivity extends Activity implements LinphoneGuiListener {
|
||||||
mBack.setOnClickListener(new OnClickListener() {
|
mBack.setOnClickListener(new OnClickListener() {
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
LinphoneCall call = LinphoneManager.getLc().getCurrentCall();
|
LinphoneCall call = LinphoneManager.getLc().getCurrentCall();
|
||||||
if (call.getCurrentParamsCopy().getVideoEnabled())
|
if (call != null && call.getCurrentParamsCopy().getVideoEnabled())
|
||||||
LinphoneActivity.instance().startVideoActivity(call, 0);
|
LinphoneActivity.instance().startVideoActivity(call, 0);
|
||||||
else
|
else
|
||||||
LinphoneActivity.instance().startIncallActivity();
|
LinphoneActivity.instance().startIncallActivity();
|
||||||
|
|
Loading…
Reference in a new issue