commit | c42180619d4371bdf625102b170b0c1d3ce83cf0 | [log] [tgz] |
---|---|---|
author | Chienyuan <chienyuanhuang@google.com> | Thu Dec 27 15:50:15 2018 +0800 |
committer | Chienyuan <chienyuanhuang@google.com> | Fri Dec 28 10:29:51 2018 +0800 |
tree | 073a1e4b925a870699f577ee7c5270cf9eb589c2 | |
parent | 46d40a2b8367b9da8a5216c361f0fded00af3077 [diff] |
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