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

Commit aee34e29 authored by ot_linyl.yang's avatar ot_linyl.yang Committed by chuanghua.zhao
Browse files

Fix AudioDeviceAttributes null crash

Binder calls AudioService.getMutingExpectedDevice return null,add
null check for fix.

Bug: 383051609
Test: run MTBF test pass

Change-Id: Ie2cc6453cc28fabeb760b9124f6fe6211d6318ff
parent 97364210
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10917,7 +10917,7 @@ public class AudioService extends IAudioService.Stub
    private AudioDeviceAttributes anonymizeAudioDeviceAttributesUnchecked(
            AudioDeviceAttributes ada) {
        if (!AudioSystem.isBluetoothDevice(ada.getInternalType())) {
        if (ada == null || !AudioSystem.isBluetoothDevice(ada.getInternalType())) {
            return ada;
        }
        AudioDeviceAttributes res = new AudioDeviceAttributes(ada);