summaryrefslogtreecommitdiff
path: root/libs/rs/rsProgramVertex.cpp
diff options
context:
space:
mode:
author Nick Pelly <npelly@google.com> 2009-09-30 15:30:43 -0700
committer Nick Pelly <npelly@google.com> 2009-09-30 15:30:43 -0700
commit62895a67d2c34fc2a4b8943e330c4269275b1c20 (patch)
tree78e51f598a0b370bc064914cf67aeff83791e622 /libs/rs/rsProgramVertex.cpp
parent285f242214d38352b844898edffc8eb336d0c19e (diff)
Fix regression.
When turning off BT while connected to an A2DP/HFP headset we can hit the path BluetoothHeadsetService.onReceive(BluetoothHeadset.STATE_CHANGED) -> BluetoothHandsfree.audioOff() -> BluetoothA2dp.resumeSink() -> which causes resumeSink() to NPE because mAudioDevices.get() returns null. It's a race between A2DP marking the device as disconnected, and HFP marking the device as disconnected. Fix is to NPE check in resumeSink(). Change-Id: I2782ac8c70ea1678d7de5fcd49bff8e03df36f4e
Diffstat (limited to 'libs/rs/rsProgramVertex.cpp')
0 files changed, 0 insertions, 0 deletions