MAP: Prevent NPE during Obex connect request
Use case:
During sns
Failure:
"Unfortunately, Bluetooth has stopped" error comes.
Root cause:
Remote connected device instance becomes null because of Bluetooth being turned off
at the same time received Obex connect request from remote which is leading to NPE.
Fix:
Use received Bluetoothdevice instance during connect request instead of using
local Bluetoothdevice instance to avoid NPE in MAP profile.
CRs-Fixed: 2466036
Change-Id: I83fbb6c987a5a5547293f9b781af951598b760c4
1 file changed