mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix crash in sms message sink when address null -- same as bt message sink.
This commit is contained in:
parent
522fd29b44
commit
0c241cf207
1 changed files with 8 additions and 1 deletions
|
@ -508,8 +508,15 @@ public class SMSService extends Service {
|
|||
/***** TransportProcs interface *****/
|
||||
public int transportSend( byte[] buf, final CommsAddrRec addr, int gameID )
|
||||
{
|
||||
int nSent = -1;
|
||||
DbgUtils.logf( "SMSMsgSink.transportSend()" );
|
||||
return sendPacket( addr.sms_phone, gameID, buf );
|
||||
if ( null != addr ) {
|
||||
nSent = sendPacket( addr.sms_phone, gameID, buf );
|
||||
} else {
|
||||
DbgUtils.logf( "SMSMsgSink.transportSend: "
|
||||
+ "addr null so not sending" );
|
||||
}
|
||||
return nSent;
|
||||
}
|
||||
|
||||
public boolean relayNoConnProc( byte[] buf, String relayID )
|
||||
|
|
Loading…
Reference in a new issue