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

SlimMoreLoader ArrayIndexOutOfBoundsException: length=0; index=-1 #23

Closed
jkyeo opened this issue Jul 17, 2017 · 1 comment
Closed

SlimMoreLoader ArrayIndexOutOfBoundsException: length=0; index=-1 #23

jkyeo opened this issue Jul 17, 2017 · 1 comment

Comments

@jkyeo
Copy link
Contributor

jkyeo commented Jul 17, 2017

In SlimMoreLoader::onScrollStateChanged() method. In some case, it cased ArrayIndexOutOfBoundsException: length=0; index=-1.

Well, it comes from findLastCompletelyVisibleItemPosition return -1 ---> getItem(-1).

The adapter position of the last fully visible view or NO_POSITION if there aren't any visible items.
int NO_POSITION
Constant Value: -1 (0xffffffff)

This case happens when the item is height enough to no one completely visible on the screen.

@jkyeo
Copy link
Contributor Author

jkyeo commented Jul 17, 2017

Looking forward to version update on maven. 👍

@jkyeo jkyeo closed this as completed Jul 17, 2017
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