Merge "Bluetooth airplane listener: Check for null"

This commit is contained in:
Hansong Zhang
2020-12-10 20:36:01 +00:00
committed by Gerrit Code Review

View File

@@ -119,7 +119,9 @@ class BluetoothAirplaneModeListener {
} }
return; return;
} }
mAirplaneHelper.onAirplaneModeChanged(mBluetoothManager); if (mAirplaneHelper != null) {
mAirplaneHelper.onAirplaneModeChanged(mBluetoothManager);
}
} }
@VisibleForTesting @VisibleForTesting