Commit bd87017d authored by jianglx's avatar jianglx

修改消费明无数据页面一片空白的问题

parent 93fc9124
......@@ -50,7 +50,7 @@ public class ConsumeDetailActivity extends BaseStatusActivity<CommonPresenter> i
if (currentPage == 1) {
pageTotal = bean.getData().getTotalPage();
refreshLayout.onRefreshComplete();
if (bean.getData().getData().size() == 0) {
if (bean.getData().getData() == null || bean.getData().getData().size() == 0) {
adapter.setEmptyView(getEmptyView(recyclerView, -1, getString(R.string.rv_select_not_data)));
adapter.notifyDataSetChanged();
} else {
......
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