mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-23 07:27:22 +01:00
catch NumberFormatException: strings come from users (if this feature
ships) so this can happen.
This commit is contained in:
parent
f6aa4e6d3c
commit
6b5596590e
1 changed files with 7 additions and 3 deletions
|
@ -2402,9 +2402,13 @@ public class BoardDelegate extends DelegateBase
|
|||
SMSService.inviteRemote( m_activity, dev, nli );
|
||||
break;
|
||||
case RELAY:
|
||||
int destDevID = Integer.parseInt( dev );
|
||||
RelayService.inviteRemote( m_activity, destDevID,
|
||||
null, nli );
|
||||
try {
|
||||
int destDevID = Integer.parseInt( dev ); // failing
|
||||
RelayService.inviteRemote( m_activity, destDevID,
|
||||
null, nli );
|
||||
} catch (NumberFormatException nfi) {
|
||||
DbgUtils.loge( nfi );
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue