Fixed NullpointerException in GpodnetAuthenticationActivity
This commit is contained in:
parent
b0500e7048
commit
57c70871b6
|
@ -270,8 +270,10 @@ public class GpodnetAuthenticationActivity extends ActionBarActivity {
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
final int position = spinnerDevices.getSelectedItemPosition();
|
||||
selectedDevice = devices.get().get(position);
|
||||
advance();
|
||||
if (position != AdapterView.INVALID_POSITION) {
|
||||
selectedDevice = devices.get().get(position);
|
||||
advance();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue