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

Skip to content
Commit 69c7e2ec authored by Sal Savage's avatar Sal Savage
Browse files

Drop codec configuration changes for disconnected devices

Currently, if a device associated with a config changed event isn't
null, we look for it in the state machine map. If the device is
disconnected, the state machine has been cleaned up and returns a null
instead. We use the null state machine, which gives us an NPE.

For now, we can drop the configuration changed event for the null
device so we can avoid a crash that would have otherwise logically
dropped the event anyways.

Tag: #stability
Bug: 324073867
Flag: EXEMPT, null check to avoid a crash + test coverage
Test: atest A2dpSinkServiceTest#testOnAudioConfigChanged_withUnknownDevice_eventDropped
Change-Id: I8531ae5697404a214254be13109d9ec290903fbb
parent a0541c03
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