Merge "NPE in BluetoothSocket.write()"