Merge "Fix NPE in Bluetooth Settings." into tm-dev am: ec5aa12cec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/17944602 Change-Id: I0d473f7d49bfec4cf179dc670b2c7e74d5e83bf6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -479,7 +479,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
|
||||
@Override
|
||||
protected void refresh() {
|
||||
for (LocalBluetoothProfile profile : getProfiles()) {
|
||||
if (profile != null && !profile.isProfileReady()) {
|
||||
if (profile == null || !profile.isProfileReady()) {
|
||||
continue;
|
||||
}
|
||||
SwitchPreference pref = mProfilesContainer.findPreference(
|
||||
|
Reference in New Issue
Block a user