mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-07 20:46:17 +01:00
fix NPE
This commit is contained in:
parent
6d7d8d5c64
commit
a8c77bca88
1 changed files with 6 additions and 4 deletions
|
@ -824,6 +824,7 @@ public class GameConfig extends XWActivity
|
||||||
ArrayAdapter<String> adapter,
|
ArrayAdapter<String> adapter,
|
||||||
String sel )
|
String sel )
|
||||||
{
|
{
|
||||||
|
if ( null != sel ) {
|
||||||
for ( int ii = 0; ii < adapter.getCount(); ++ii ) {
|
for ( int ii = 0; ii < adapter.getCount(); ++ii ) {
|
||||||
if ( sel.equals( adapter.getItem(ii) ) ) {
|
if ( sel.equals( adapter.getItem(ii) ) ) {
|
||||||
spinner.setSelection( ii );
|
spinner.setSelection( ii );
|
||||||
|
@ -831,6 +832,7 @@ public class GameConfig extends XWActivity
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void loadPhones()
|
private void loadPhones()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue