Loading android/app/src/com/android/bluetooth/pbapclient/PbapClientConnectionHandler.java +4 −1 Original line number Diff line number Diff line Loading @@ -329,7 +329,10 @@ class PbapClientConnectionHandler extends Handler { if (DBG) { Log.d(TAG, "Success = " + Boolean.toString(connectionSuccessful)); } } catch (IOException e) { } catch (IOException | NullPointerException e) { // Will get NPE if a null mSocket is passed to BluetoothObexTransport. // mSocket can be set to null if an abort() --> closeSocket() was called between // the calls to connectSocket() and connectObexSession(). Log.w(TAG, "CONNECT Failure " + e.toString()); closeSocket(); } Loading Loading
android/app/src/com/android/bluetooth/pbapclient/PbapClientConnectionHandler.java +4 −1 Original line number Diff line number Diff line Loading @@ -329,7 +329,10 @@ class PbapClientConnectionHandler extends Handler { if (DBG) { Log.d(TAG, "Success = " + Boolean.toString(connectionSuccessful)); } } catch (IOException e) { } catch (IOException | NullPointerException e) { // Will get NPE if a null mSocket is passed to BluetoothObexTransport. // mSocket can be set to null if an abort() --> closeSocket() was called between // the calls to connectSocket() and connectObexSession(). Log.w(TAG, "CONNECT Failure " + e.toString()); closeSocket(); } Loading