Feeds can be null in ItemListFragment
This commit is contained in:
parent
86f4d244d8
commit
db20064e8f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue