Feeds can be null in ItemListFragment

This commit is contained in:
Tom Hennen 2015-08-04 22:03:14 -04:00
parent 86f4d244d8
commit db20064e8f
1 changed files with 4 additions and 0 deletions

View File

@ -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 {