diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-08-04 22:03:14 -0400 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-08-04 22:03:14 -0400 |
commit | db20064e8f72afa09f11fbd4f31185c8466c7714 (patch) | |
tree | e30e0b7e16c1928f87f2c7f844c3ee82965df656 /app | |
parent | 86f4d244d8b4bd2658ce04c4b8aef51dd277256a (diff) | |
download | AntennaPod-db20064e8f72afa09f11fbd4f31185c8466c7714.zip |
Feeds can be null in ItemListFragment
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java | 4 |
1 files changed, 4 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 232dfc214..9b2fd0a7c 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java @@ -450,6 +450,10 @@ public class ItemlistFragment extends ListFragment { } private void refreshHeaderView() { + if (getListView() == null || feed == null) { + Log.e(TAG, "Unable to setup listview: listView = null or feed = null"); + return; + } if(feed.hasLastUpdateFailed()) { txtvFailure.setVisibility(View.VISIBLE); } else { |