mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +01:00
fix NPE introduced by 458872c88
This commit is contained in:
parent
118d9e49fe
commit
f8f3082c0f
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
/* -*- compile-command: "find-and-gradle.sh inXw4dDeb"; -*- */
|
||||
/*
|
||||
* Copyright 2009 - 2016 by Eric House (xwords@eehouse.org). All rights
|
||||
* Copyright 2009 - 2020 by Eric House (xwords@eehouse.org). All rights
|
||||
* reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -585,6 +585,10 @@ public class GameConfigDelegate extends DelegateBase
|
|||
String relayName = XWPrefs.getDefaultRelayHost( m_activity );
|
||||
int relayPort = XWPrefs.getDefaultRelayPort( m_activity );
|
||||
m_carOrig = XwJNI.comms_getInitialAddr( relayName, relayPort );
|
||||
} else {
|
||||
// Leaving this null breaks stuff: an empty set, rather than a
|
||||
// null one, represents a standalone game
|
||||
m_carOrig = new CommsAddrRec();
|
||||
}
|
||||
|
||||
// load if the first time through....
|
||||
|
|
Loading…
Add table
Reference in a new issue