LRecyclerView icon indicating copy to clipboard operation
LRecyclerView copied to clipboard

refreshComplete空指针异常

Open joedan0104 opened this issue 5 years ago • 0 comments

当LRecyclerView初始化的时候未设置adapter,数据请求完成调用refreshComplete时,没有进行空值判断导致发生奔溃。例如其中的mWrapAdapter和this.mWrapAdapter.getInnerAdapter()都没有判断空值。 if (this.mWrapAdapter.getInnerAdapter().getItemCount() == this.mPageSize) { this.isCritical = true; } else { this.isCritical = false; }

joedan0104 avatar Apr 17 '19 08:04 joedan0104