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