mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-27 07:58:49 +01:00
fix crash on receiving end: inviteID is optional
This commit is contained in:
parent
95f761d664
commit
3a1e091852
2 changed files with 2 additions and 2 deletions
|
@ -1096,7 +1096,7 @@ public class BTService extends XWService {
|
|||
private DataOutputStream connect( BluetoothSocket socket, BTCmd cmd )
|
||||
{
|
||||
String name = socket.getRemoteDevice().getName();
|
||||
DbgUtils.logf( "connecting to %s to send %s", name, cmd.toString() );
|
||||
DbgUtils.logf( "connecting to %s to send cmd %s", name, cmd.toString() );
|
||||
// Docs say always call cancelDiscovery before trying to connect
|
||||
m_adapter.cancelDiscovery();
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ public class NetLaunchInfo {
|
|||
break;
|
||||
case COMMS_CONN_RELAY:
|
||||
room = json.getString( MultiService.ROOM );
|
||||
m_inviteID = json.getString( MultiService.INVITEID );
|
||||
m_inviteID = json.optString( MultiService.INVITEID );
|
||||
break;
|
||||
case COMMS_CONN_SMS:
|
||||
phone = json.getString( PHONE_KEY );
|
||||
|
|
Loading…
Add table
Reference in a new issue