We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 40b7ea4 + b49a896 commit a3d5b68Copy full SHA for a3d5b68
1 file changed
core/java/android/bluetooth/BluetoothSocket.java
@@ -19,6 +19,7 @@
19
import java.io.InputStream;
20
import java.io.OutputStream;
21
import java.util.List;
22
+import java.util.UUID;
23
import android.net.LocalSocket;
24
import java.nio.ByteOrder;
25
import java.nio.ByteBuffer;
@@ -140,7 +141,9 @@ private enum SocketState {
140
141
throw new IOException("Invalid RFCOMM channel: " + port);
142
}
143
- mUuid = uuid;
144
+ if(uuid != null)
145
+ mUuid = uuid;
146
+ else mUuid = new ParcelUuid(new UUID(0, 0));
147
mType = type;
148
mAuth = auth;
149
mEncrypt = encrypt;
0 commit comments