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

Commit bf1752c4 authored by Grace Jia's avatar Grace Jia
Browse files

Catch NPE in ImsPhoneCallTracker#holdActiveCall when call to hold is

null.

Bug: 167689250
Test: unit test
Change-Id: I1cb3fb089f119625f90e25e353918d69cff5b551
parent aadf244e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1857,7 +1857,7 @@ public class ImsPhoneCallTracker extends CallTracker implements ImsPullCall {
                callToHold.hold();
                mMetrics.writeOnImsCommand(mPhone.getPhoneId(), callToHold.getSession(),
                        ImsCommand.IMS_CMD_HOLD);
            } catch (ImsException e) {
            } catch (ImsException | NullPointerException e) {
                mForegroundCall.switchWith(mBackgroundCall);
                mHoldSwitchingState = oldHoldState;
                logHoldSwapState("holdActiveCall - fail");