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

项目上的问题 #2

Open
tomcat20171128 opened this issue Feb 14, 2018 · 0 comments
Open

项目上的问题 #2

tomcat20171128 opened this issue Feb 14, 2018 · 0 comments

Comments

@tomcat20171128
Copy link

你好,近期我有下载你这个项目学习,发现了一个问题,代码运行到这里的时候
public int getItemViewType(int position) {

if (data.get(position).getHomeurl().equals("")) {

    return 0;
} else if (data.get(position).getHomeurl().contains(".mp4")) {

    return 2;
} else {
   
    return 1;
}

}
出现了 java.lang.IndexOutOfBoundsException: Invalid index 10, size is 10这个异常,请问你有解决这个问题吗,能否告知一下,谢谢了。这个项目挺好的

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