From bf871a20fb9c3b84ff76328b70581ee58fa56a25 Mon Sep 17 00:00:00 2001 From: Eric House Date: Thu, 21 Apr 2016 06:35:42 -0700 Subject: [PATCH] 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. --- .../XWords4/src/org/eehouse/android/xw4/BoardDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java index e3fd10c3f..6b2dab2f7 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardDelegate.java @@ -2685,7 +2685,7 @@ public class BoardDelegate extends DelegateBase GameSummary summary ) { boolean supported = false; - if ( XWApp.REMATCH_SUPPORTED ) { + if ( XWApp.REMATCH_SUPPORTED && null != summary ) { // standalone games are easy to rematch supported = summary.serverRole == DeviceRole.SERVER_STANDALONE;