commit | abe91dbc3ea41009411776e630325e536b82d788 | [log] [tgz] |
---|---|---|
author | bohu <bohu@google.com> | Tue Dec 18 12:18:45 2018 -0800 |
committer | bohu <bohu@google.com> | Tue Dec 18 12:30:58 2018 -0800 |
tree | 14095f636a4c63b58c0e7630f87dd40f300d1224 | |
parent | 0b6adaab7a2ed82b1fafac0241b523d0c7f3b532 [diff] |
bluetooth: fix crash on accessing null adapter By checking bluetooth adaptor before accessing it, because it could be null on devices that do not support bluetooth, such as android emulator. BUG: 121129248 Test: lunch sdk_gphone_x86-userdebug make -j emulator launch chrome and it should not crash Change-Id: Ia75b5ee1efa3a8195056dada079239931eb9d901