catch NumberFormatException: strings come from users (if this feature

ships) so this can happen.
This commit is contained in:
Eric House 2015-07-28 21:10:40 -07:00
parent f6aa4e6d3c
commit 6b5596590e

View file

@ -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;
}
}