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() {
|
private void refreshHeaderView() {
|
||||||
|
if (getListView() == null || feed == null) {
|
||||||
|
Log.e(TAG, "Unable to setup listview: listView = null or feed = null");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if(feed.hasLastUpdateFailed()) {
|
if(feed.hasLastUpdateFailed()) {
|
||||||
txtvFailure.setVisibility(View.VISIBLE);
|
txtvFailure.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue