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

Index 0 out-of-bounds for length 0 #4

Open
xiangshan11 opened this issue Jun 4, 2019 · 0 comments
Open

Index 0 out-of-bounds for length 0 #4

xiangshan11 opened this issue Jun 4, 2019 · 0 comments

Comments

@xiangshan11
Copy link

你好,在运行这个代码时,在loginweb里面报了个错误,2019-06-05 00:47:00 ERROR [LoginWeibo] [loginAndGetGsid] java.lang.IndexOutOfBoundsException: Index 0 out-of-bounds for length 0 如上所示
这是相关代码段,希望可以不吝赐教
if(pwdNameEntity != null){
content = EntityUtils.toString(pwdNameEntity, "UTF-8");
Document doc = Jsoup.parse(content);
Elements inputs = doc.getElementsByTag("input");
Element form = doc.getElementsByTag("form").get(0);
在最后一行出现的问题。

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