fix crash trying to create new game immediately after allowing board

to delete one.
This commit is contained in:
Eric House 2014-09-10 07:01:56 -07:00
parent b333e3959f
commit 3b2a537e93

View file

@ -1421,8 +1421,14 @@ public class GamesListDelegate extends ListDelegateBase
{
String[][] missingNames = new String[1][];
int[] missingLang = new int[1];
boolean hasDicts =
GameUtils.gameDictsHere( m_activity, rowid, missingNames, missingLang );
boolean hasDicts;
try {
hasDicts = GameUtils.gameDictsHere( m_activity, rowid, missingNames,
missingLang );
} catch ( GameUtils.NoSuchGameException nsge ) {
hasDicts = true; // irrelevant question
}
if ( !hasDicts ) {
m_missingDictLang = missingLang[0];
if ( 0 < missingNames[0].length ) {