Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76e23091 authored by Hugh Chen's avatar Hugh Chen
Browse files

Check null BT profile to prevent crash

Bug: 229802811
Test: build pass
Change-Id: Idf9f32ec08793784fbce05d34c53cdf53cddb312
parent 3c354a2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -479,7 +479,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
    @Override
    protected void refresh() {
        for (LocalBluetoothProfile profile : getProfiles()) {
            if (!profile.isProfileReady()) {
            if (profile != null && !profile.isProfileReady()) {
                continue;
            }
            SwitchPreference pref = mProfilesContainer.findPreference(