Skip to content
Commit c4218061 authored by Chienyuan's avatar Chienyuan
Browse files

Add null check for AclStateChangedHandler

When we receive ACL state change and can't find corresponding
CachedBluetoothDevice, we will trigger onAclConnectStateChanged with
null activeDevice and cause NullPointerException.
Add a null check in AclStateChangedHandler to prevent it.

Bug: 122049350
Test: RunSettingsLibRoboTests
Change-Id: Iaabccc8c4ad60dbae14bbb0f6af655be06bc18ea
parent 46d40a2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment