diff options
author | Tom Hennen <TomHennen@users.noreply.github.com> | 2016-01-16 14:59:21 -0500 |
---|---|---|
committer | Tom Hennen <TomHennen@users.noreply.github.com> | 2016-01-16 14:59:21 -0500 |
commit | b5365e2d3453d06a94967a9579ab9c1718238a56 (patch) | |
tree | e18c8a5604e5988570d64d3fbeeb568df758db53 | |
parent | dfc421a5a6119cada45271e0fffeb513acb8a2ac (diff) | |
parent | 1f00747e98437e4b4ec86c6f1cfd50f569bd8248 (diff) | |
download | AntennaPod-b5365e2d3453d06a94967a9579ab9c1718238a56.zip |
Merge pull request #1551 from mfietz/issue/1550-npe-list-item-click
ItemListFragment: Prevent onListItemClick() NPE
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java index bc5024426..44638b312 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java @@ -370,6 +370,9 @@ public class ItemlistFragment extends ListFragment { @Override public void onListItemClick(ListView l, View v, int position, long id) { + if(adapter == null) { + return; + } FeedItem selection = adapter.getItem(position - l.getHeaderViewsCount()); if (selection != null) { MainActivity activity = (MainActivity) getActivity(); |