fix array out-of-bounds exception

This commit is contained in:
Eric House 2017-08-01 22:22:44 -07:00
parent bb367acab3
commit 4ec930d53c

View file

@ -1164,7 +1164,8 @@ public class BoardDelegate extends DelegateBase
Object... params ) Object... params )
{ {
if ( action == Action.LAUNCH_INVITE_ACTION ) { if ( action == Action.LAUNCH_INVITE_ACTION ) {
SentInvitesInfo info = params[0] instanceof SentInvitesInfo SentInvitesInfo info = 0 < params.length
&& params[0] instanceof SentInvitesInfo
? (SentInvitesInfo)params[0] : null; ? (SentInvitesInfo)params[0] : null;
switch( means ) { switch( means ) {
case NFC: case NFC: