From 4ec930d53c1553cc2f9889a1f009251f2fb784d7 Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 1 Aug 2017 22:22:44 -0700 Subject: [PATCH] fix array out-of-bounds exception --- .../src/main/java/org/eehouse/android/xw4/BoardDelegate.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java index c4e258fa8..d5460275f 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/BoardDelegate.java @@ -1164,7 +1164,8 @@ public class BoardDelegate extends DelegateBase Object... params ) { 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; switch( means ) { case NFC: