Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refreshComplete空指针异常 #333

Open
joedan0104 opened this issue Apr 17, 2019 · 0 comments
Open

refreshComplete空指针异常 #333

joedan0104 opened this issue Apr 17, 2019 · 0 comments

Comments

@joedan0104
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant