Early return when mA2dp is null (disconnected) to avoid null object reference

Bug: 287135970
Test: m
Change-Id: Id9e05f94b9fc7c76f6d3bad482246eb4f72aa054
This commit is contained in:
Shunkai Yao
2023-06-15 17:22:15 +00:00
committed by Eric Laurent
parent 01158d6e17
commit 868e7250b0

View File

@@ -218,8 +218,8 @@ public class BtHelper {
if (AudioService.DEBUG_VOL) {
AudioService.sVolumeLogger.enqueue(new EventLogger.StringEvent(
"setAvrcpAbsoluteVolumeIndex: bailing due to null mA2dp").printLog(TAG));
return;
}
return;
}
if (!mAvrcpAbsVolSupported) {
AudioService.sVolumeLogger.enqueue(new EventLogger.StringEvent(