This commit is contained in:
Eric House 2012-10-17 07:01:01 -07:00
parent 6d7d8d5c64
commit a8c77bca88

View file

@ -824,10 +824,12 @@ public class GameConfig extends XWActivity
ArrayAdapter<String> adapter,
String sel )
{
for ( int ii = 0; ii < adapter.getCount(); ++ii ) {
if ( sel.equals( adapter.getItem(ii) ) ) {
spinner.setSelection( ii );
break;
if ( null != sel ) {
for ( int ii = 0; ii < adapter.getCount(); ++ii ) {
if ( sel.equals( adapter.getItem(ii) ) ) {
spinner.setSelection( ii );
break;
}
}
}
}