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

Skip to content
Commit 9cb13d7b authored by Kyunglyul Hyun's avatar Kyunglyul Hyun
Browse files

Prevent NPE in bt_gatt_callback

A thread setting bt_gatt_callbacks and
a thread using it may be different,
potentially causing an NPE if
bt_gatt_callbacks is accessed after being cleaned up.

Use a local variable to ensure safe access in threaded environments.

Bug: 353974484
Flag: EXEMPT, strict null check.
Test: atest BluetoothInstrumentaionTests
Change-Id: I2bd8dd62d0fab0e58db1c1b690406341fc251bf8
parent 0209fb30
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