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

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

Merge "Add null check for mPendingMO" am: ec395eb9 am: 6c707883

am: 6595f49e

Change-Id: Ifd21a2be0e8c6b9ac7630bdf65742e883b8debff
parents e60e65c9 6595f49e
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;
@@ -2342,7 +2340,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);