Commit f1ef69e4 authored by Sravan Voleti's avatar Sravan Voleti
Browse files

Bluetooth: Fix Potential NPE during Server socket accept

Use case:
   During SNS
1. TDLS_UDP_BiDi
2. Router_UDP_BiDi
3. RTTI Scan,Split Scan, Host Scan
4. ANT_Sensor_Simulator
5. BT_ON_OFF

Failure:
"Unfortunately, Bluetooth share has stopped" error comes.

Root cause:
Observed NPE during server socket accept.

Fix:
Add extra catch block to avoid NPE because of race
condition between  API's of closeService and accept Socket,
to prevent force close in profile.

CRs-Fixed: 2350839
Change-Id: I8e70e4db1261281121f01fca015f1d17f0875a3d
parent 8af02b0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment