Fix nullpointerexception if cancel addcall while another call is in pause

This commit is contained in:
Sylvain Berfini 2012-05-11 15:23:29 +02:00
parent 3da20210ba
commit 3fc1447ce6

View file

@ -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();