mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-02 20:46:15 +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 );
|
SMSService.inviteRemote( m_activity, dev, nli );
|
||||||
break;
|
break;
|
||||||
case RELAY:
|
case RELAY:
|
||||||
int destDevID = Integer.parseInt( dev );
|
try {
|
||||||
RelayService.inviteRemote( m_activity, destDevID,
|
int destDevID = Integer.parseInt( dev ); // failing
|
||||||
null, nli );
|
RelayService.inviteRemote( m_activity, destDevID,
|
||||||
|
null, nli );
|
||||||
|
} catch (NumberFormatException nfi) {
|
||||||
|
DbgUtils.loge( nfi );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue