mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
fix, by inspection, NPE reported through the Play Store.
This commit is contained in:
parent
e9059cba47
commit
f363fadf39
1 changed files with 53 additions and 49 deletions
|
@ -788,6 +788,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
|
||||
private void loadPlayersList()
|
||||
{
|
||||
if ( null != m_gameLock ) {
|
||||
m_playerLayout.removeAllViews();
|
||||
|
||||
String[] names = m_gi.visibleNames( false );
|
||||
|
@ -836,6 +837,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
showDialog( DlgID.FORCE_REMOTE );
|
||||
}
|
||||
adjustPlayersLabel();
|
||||
}
|
||||
} // loadPlayersList
|
||||
|
||||
private void configDictSpinner( Spinner dictsSpinner, int lang,
|
||||
|
@ -886,6 +888,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
public void onItemSelected(AdapterView<?> parentView,
|
||||
View selectedItemView,
|
||||
int position, long id ) {
|
||||
if ( null != m_gameLock ) { // not on the way out?
|
||||
String chosen =
|
||||
(String)parentView.getItemAtPosition( position );
|
||||
if ( chosen.equals( m_browseText ) ) {
|
||||
|
@ -895,6 +898,7 @@ public class GameConfigDelegate extends DelegateBase
|
|||
selLangChanged( langName );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onNothingSelected(AdapterView<?> parentView) {}
|
||||
|
|
Loading…
Reference in a new issue