diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-08-12 16:39:10 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-08-12 16:39:10 +0200 |
commit | 57c70871b6c9b68e5c82b0b3472102c4f8ccb2ea (patch) | |
tree | aa5978da4cb4f66b541976b5d1c0716a42003ad0 /src/de | |
parent | b0500e70488a6c44c2e1f4b1c2f7f095a4ac350c (diff) | |
download | AntennaPod-57c70871b6c9b68e5c82b0b3472102c4f8ccb2ea.zip |
Fixed NullpointerException in GpodnetAuthenticationActivity
Diffstat (limited to 'src/de')
-rw-r--r-- | src/de/danoeh/antennapod/activity/gpoddernet/GpodnetAuthenticationActivity.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/de/danoeh/antennapod/activity/gpoddernet/GpodnetAuthenticationActivity.java b/src/de/danoeh/antennapod/activity/gpoddernet/GpodnetAuthenticationActivity.java index cb6dc41cf..6a60f65fe 100644 --- a/src/de/danoeh/antennapod/activity/gpoddernet/GpodnetAuthenticationActivity.java +++ b/src/de/danoeh/antennapod/activity/gpoddernet/GpodnetAuthenticationActivity.java @@ -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(); + } } }); } |