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

Commit 899b590e authored by Ravindra's avatar Ravindra
Browse files

Fix to prevent null pointer exception

Add null check while checking for phone account.

Change-Id: I0eeeee3c5d42b9230a2c5bff450b193db8504e9f
CRs-Fixed: 753768
parent dc3d0537
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -280,6 +280,7 @@ final class CallAudioManager extends CallsManagerListenerBase
        boolean wasNotVoiceCall = mAudioFocusStreamType != AudioManager.STREAM_VOICE_CALL;
        updateAudioStreamAndMode();
        if ((call != null) && (call.getState() == CallState.ACTIVE) &&
                (call.getTargetPhoneAccount() != null) &&
                call.getTargetPhoneAccount().getId().equals(mSubId) && mSpeedUpAudioForMtCall) {
            Log.d(this,"Reset mSpeedUpAudioForMtCall");
            mSpeedUpAudioForMtCall = false;