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

Skip to content
Commit 6950c491 authored by Yuyang Huang's avatar Yuyang Huang
Browse files

Skip mAudioManager callback if it is null

When HearingAidService (in thread A) calls `Stop`, it unregisters callback for `onAudioDevicesRemoved` and sets `mAudioManager` to null.
The `onAudioDevicesRemoved` callback goes to AudioManager's message queue (in thread B), and when AudioManager starts to process it, it finds `mAudioManager` is null, and crashes.

Bug: 277851145
Change-Id: I685015efb1d5412479875580b82cfefa3611263a
Test: atest avatar
parent c4351876
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment