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

Skip to content
Commit 4b6617f3 authored by Ugo Yu's avatar Ugo Yu
Browse files

Fix NPE in setActiveDevice if HFP audio is not allowed

Fix a null pointer expection that if a connected device is set to active
but audio is not allowed. If the previous active device is null, the
HeadsetService tries to send the null device to the native interface and
causes crash.

Tag: #stability
Bug: 201357034
Test: atest HeadsetServiceTest
Change-Id: I49f0b1cb690a7903a5b04813df4943382914866e
parent b4d17e1c
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