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
Loading
Please sign in to comment