commit | 76e230918f83d6cb2a4bdbf43ea5b28edeccf848 | [log] [tgz] |
---|---|---|
author | Hugh Chen <hughchen@google.com> | Wed Apr 20 03:45:13 2022 +0000 |
committer | Hugh Chen <hughchen@google.com> | Wed Apr 20 04:53:23 2022 +0000 |
tree | 94ef1e887557bea291bbd80b7eeddc81fb2b9db0 | |
parent | 3c354a2d3802a8e11446a061d69e94e4293fab88 [diff] |
Check null BT profile to prevent crash Bug: 229802811 Test: build pass Change-Id: Idf9f32ec08793784fbce05d34c53cdf53cddb312
diff --git a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java index f0809ad..b7f8909 100644 --- a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +++ b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java
@@ -479,7 +479,7 @@ @Override protected void refresh() { for (LocalBluetoothProfile profile : getProfiles()) { - if (!profile.isProfileReady()) { + if (profile != null && !profile.isProfileReady()) { continue; } SwitchPreference pref = mProfilesContainer.findPreference(