Prevent crash int OutgoingCallReceiver

This commit is contained in:
Erwan Croze 2017-10-03 17:01:41 +02:00
parent fd69d6636f
commit 240feadf01

View file

@ -22,7 +22,7 @@ public class OutgoingCallReceiver extends BroadcastReceiver {
if (intent.getAction().equals(Intent.ACTION_NEW_OUTGOING_CALL)) {
Log.e(TAG, "===>>>> Linphone OutgoingCallReceiver : ACTION_NEW_OUTGOING_CALL");
String number = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER);
if(mPrefs.getNativeDialerCall()){
if(mPrefs.getConfig() != null && mPrefs.getNativeDialerCall()){
abortBroadcast();
setResultData(null);
Intent newIntent = new Intent(ACTION_CALL_LINPHONE);