Closed martinohanlon closed 4 years ago
A null pointer exception is raised here https://github.com/martinohanlon/BlueDot/blob/master/clients/android/app/src/main/java/com/stuffaboutcode/bluedot/BluetoothChatService.java#L426
if mmSocket is null because it failed to be created in the constructor here https://github.com/martinohanlon/BlueDot/blob/master/clients/android/app/src/main/java/com/stuffaboutcode/bluedot/BluetoothChatService.java#L400
mmSocket
This issue was reported as an ANR from google play.
No idea why it happens but the run method should test to see if mmSocket is null and call connectionFailed.
run
null
connectionFailed
in dev and ready
A null pointer exception is raised here https://github.com/martinohanlon/BlueDot/blob/master/clients/android/app/src/main/java/com/stuffaboutcode/bluedot/BluetoothChatService.java#L426
if
mmSocket
is null because it failed to be created in the constructor here https://github.com/martinohanlon/BlueDot/blob/master/clients/android/app/src/main/java/com/stuffaboutcode/bluedot/BluetoothChatService.java#L400This issue was reported as an ANR from google play.
No idea why it happens but the
run
method should test to see ifmmSocket
isnull
and callconnectionFailed
.