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

数组越界异常 #4

Open
yedelingdong opened this issue May 14, 2018 · 2 comments
Open

数组越界异常 #4

yedelingdong opened this issue May 14, 2018 · 2 comments

Comments

@yedelingdong
Copy link

yedelingdong commented May 14, 2018

  1. HotFragment.java的180行会抛出java.lang.IndexOutOfBoundsException。
  2. 现象:第一页全部加载完成,然后上拉刷新到第二页,然后再下拉到第一页,点击第0项,就抛异常。
@yedelingdong
Copy link
Author

  1. HotFragment.java下第180行的代码
    HotGoods.ListBean listBean = datas.get(position - (currPage - 1) * pageSize);
    修改成:
    HotGoods.ListBean listBean = mAdatper.getDatas().get(position);

@gaolhjy
Copy link
Owner

gaolhjy commented Aug 9, 2018

bug已修复.谢谢你

@gaolhjy gaolhjy closed this as completed Aug 9, 2018
@gaolhjy gaolhjy reopened this Aug 9, 2018
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

2 participants