commit | f792528a8fc1945b73dc565dbfcc10ec849c5d04 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Wed Apr 20 07:43:49 2022 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Wed Apr 20 07:43:49 2022 +0000 |
tree | 5a6f6d35e1d24503a7ae127725576bb24c90e790 | |
parent | 426f8a58e1bc633c76b6526da6f2965040818e3f [diff] | |
parent | 76e230918f83d6cb2a4bdbf43ea5b28edeccf848 [diff] |
Merge "Check null BT profile to prevent crash" into tm-dev
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(