Merge "Check null BT profile to prevent crash" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f792528a8f
@@ -479,7 +479,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll
|
|||||||
@Override
|
@Override
|
||||||
protected void refresh() {
|
protected void refresh() {
|
||||||
for (LocalBluetoothProfile profile : getProfiles()) {
|
for (LocalBluetoothProfile profile : getProfiles()) {
|
||||||
if (!profile.isProfileReady()) {
|
if (profile != null && !profile.isProfileReady()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
SwitchPreference pref = mProfilesContainer.findPreference(
|
SwitchPreference pref = mProfilesContainer.findPreference(
|
||||||
|
Reference in New Issue
Block a user