mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
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:
parent
18503f2237
commit
bf871a20fb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue