diff options
author | hughchen <hughchen@google.com> | 2020-04-14 11:50:55 +0800 |
---|---|---|
committer | hughchen <hughchen@google.com> | 2020-04-14 11:50:55 +0800 |
commit | be5140048aa77daee45eea488fe4f599e8fe4cff (patch) | |
tree | 88fac4601e1cabfd98b62a60e9d027674a43d1be /tools/aapt2/java/JavaClassGenerator.cpp | |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions