commit | b55fe920674b1f43b56330ffea52b38b176e5e21 | [log] [tgz] |
---|---|---|
author | Pranav Madapurmath <pmadapurmath@google.com> | Thu Nov 21 19:43:39 2024 +0000 |
committer | Pranav Madapurmath <pmadapurmath@google.com> | Thu Nov 21 19:43:39 2024 +0000 |
tree | 2907f4867eaee898217b37ebe70bcc6e9ce9f8af | |
parent | b0aeb39cdfdafcdeae40e6fd7a363f1b8788a796 [diff] |
Fix NPE in BluetoothDeviceManager The NPE was caused by a null check on mBluetoothAdapter in the constructor which skipped over the instantiation of mBluetoothHeadsetFuture. We should move the initialization of fields that aren't dependent on the adapter outside of the if block so that we don't run into other potential NPEs. Bug: 380284503 Change-Id: I9a18630202af3ae4b329394d0cf688af71b90749 Flag: EXEMPT bugfix Test: m Telecom