Commit ba230d66 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent NPE

parent b7f37eb2
......@@ -360,7 +360,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
*/
protected void updateEmptyView() {
if (mAdapter.isEmpty()) {
if (mSwipeRefreshLayout.isRefreshing()) {
if (mSwipeRefreshLayout == null || mSwipeRefreshLayout.isRefreshing()) {
mEmptyView.setText(R.string.loading);
mEmptyView.setVisibility(View.VISIBLE);
mRecyclerView.setVisibility(View.GONE);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment