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