summaryrefslogtreecommitdiff
path: root/src/de/danoeh/antennapod/activity/gpoddernet
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-08-12 16:39:10 +0200
committerdaniel oeh <daniel.oeh@gmail.com>2014-08-12 16:39:10 +0200
commit57c70871b6c9b68e5c82b0b3472102c4f8ccb2ea (patch)
treeaa5978da4cb4f66b541976b5d1c0716a42003ad0 /src/de/danoeh/antennapod/activity/gpoddernet
parentb0500e70488a6c44c2e1f4b1c2f7f095a4ac350c (diff)
downloadAntennaPod-57c70871b6c9b68e5c82b0b3472102c4f8ccb2ea.zip
Fixed NullpointerException in GpodnetAuthenticationActivity
Diffstat (limited to 'src/de/danoeh/antennapod/activity/gpoddernet')
-rw-r--r--src/de/danoeh/antennapod/activity/gpoddernet/GpodnetAuthenticationActivity.java6
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();
+ }
}
});
}