MAP: Handle possible NPE while disconnect map.
Verified with IOT: MecApp in MCE role
1. Connect MAS
2. Register Mas Instance via MNS
3. Disconnect MAS
Bluetooth App crash sometimes when disconnect map profile.
The issue is hit when MAS disconnect is finished before MNS unregister.
In this case NullpointerException is happening because of clearing
BluetoothMapContentObserver already as a part of cleanup.
Handle Null pointer exception while last
MAS instance disconnect is handled before MNS
1 file changed