diff options
author | Roman Kiryanov <rkir@google.com> | 2020-03-27 17:40:27 -0700 |
---|---|---|
committer | Roman Kiryanov <rkir@google.com> | 2020-03-27 17:40:27 -0700 |
commit | fe87df9ea67fdcebae9a265921957c806d85ab68 (patch) | |
tree | 5b49335a9cf0e8a4e4b9fc3cb8074d481d60b0b4 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 5bc4b972dce349d36dcc4a582fb28e1175f4a094 (diff) |
Check mBtRouteProvider for null before using it
BluetoothRouteProvider.getInstance returns null if
there is no BT adapter available (e.g. on Android Studio
Emulator) which causes a bad crash.
Bug: 152647633
Test: boot, play video in chrome
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: Ic52a164c348290463cbf1fba913a67d378b746d9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions