commit | be5140048aa77daee45eea488fe4f599e8fe4cff | [log] [tgz] |
---|---|---|
author | hughchen <hughchen@google.com> | Tue Apr 14 11:50:55 2020 +0800 |
committer | hughchen <hughchen@google.com> | Tue Apr 14 11:50:55 2020 +0800 |
tree | 88fac4601e1cabfd98b62a60e9d027674a43d1be | |
parent | 78552a888ab31f913e18a4be5e2e261423728155 [diff] |
Return empty array when BluetoothAdapter is null BluetoothAdapter will be null in some platform device, because they don't have bluetooth feature. This CL add null check to avoid null point exception on non-bluetooth feature platform device. Bug: 152647633 Test: make -j42 RunSettingsLibRoboTests Change-Id: Iba7f41796bd22163ab55a7f9ff4f44df6513754e