diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2015-11-26 16:02:48 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2015-11-26 19:46:11 +0100 |
commit | 6bf4d28c34562246fafe8757bcebe52ae7eff195 (patch) | |
tree | c75d96235ed3eb022682b38faa533326d97fd20c /app/src/main/java/de | |
parent | d91e9f4d6fb267c65fd228e8e857e550ae5178db (diff) | |
download | AntennaPod-6bf4d28c34562246fafe8757bcebe52ae7eff195.zip |
Fix ArrayIndexOutOfBoundsException
See Play store crash report
No idea why this happens...
Diffstat (limited to 'app/src/main/java/de')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java index db5d95732..4378e7c8f 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/AllEpisodesFragment.java @@ -335,7 +335,7 @@ public class AllEpisodesFragment extends Fragment { @Override public int getCount() { - if (itemsLoaded) { + if (episodes != null) { return episodes.size(); } return 0; @@ -343,7 +343,7 @@ public class AllEpisodesFragment extends Fragment { @Override public FeedItem getItem(int position) { - if (itemsLoaded) { + if (episodes != null && position < episodes.size()) { return episodes.get(position); } return null; |