test for null to avoid NPE. I'm not sure how it gets here -- race

condition on opening maybe -- but not showing the one menuitem in this
case is harmless.
This commit is contained in:
Eric House 2016-04-21 06:35:42 -07:00
parent 18503f2237
commit bf871a20fb

View file

@ -2685,7 +2685,7 @@ public class BoardDelegate extends DelegateBase
GameSummary summary ) GameSummary summary )
{ {
boolean supported = false; boolean supported = false;
if ( XWApp.REMATCH_SUPPORTED ) { if ( XWApp.REMATCH_SUPPORTED && null != summary ) {
// standalone games are easy to rematch // standalone games are easy to rematch
supported = summary.serverRole == DeviceRole.SERVER_STANDALONE; supported = summary.serverRole == DeviceRole.SERVER_STANDALONE;