Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c707883 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Add null check for mPendingMO"

am: ec395eb9

Change-Id: Ic33a80ffe804fe4ae1dfa29eb023673a90e95526
parents 022264a8 ec395eb9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -46,11 +46,9 @@ import android.provider.Settings;
import android.telecom.ConferenceParticipant;
import android.telecom.TelecomManager;
import android.telecom.VideoProfile;
import android.telephony.AccessNetworkConstants.TransportType;
import android.telephony.CarrierConfigManager;
import android.telephony.DisconnectCause;
import android.telephony.PhoneNumberUtils;
import android.telephony.PreciseDisconnectCause;
import android.telephony.Rlog;
import android.telephony.ServiceState;
import android.telephony.SubscriptionManager;
@@ -2350,7 +2348,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                        dialPendingMO();
                    }
                    mHoldSwitchingState = HoldSwapState.INACTIVE;
                } else if (mPendingMO.isEmergency()) {
                } else if (mPendingMO != null && mPendingMO.isEmergency()) {
                    // If mPendingMO is an emergency call, disconnect the call that we tried to
                    // hold.
                    mBackgroundCall.getImsCall().terminate(ImsReasonInfo.CODE_UNSPECIFIED);