-
Notifications
You must be signed in to change notification settings - Fork 44
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
GridDividerItemDecoration crashes on an empty list #33
Comments
Updating to the latest code which is slightly different to v1.0.0 released on maven shows this method (which was introduced in 11a647f):
This still crashes on line Since the commit is the same, I think this is related to #31 |
Given a grid where the first row is not filled up to the end, `firstRowChild` will become null at some point. Resolves: bignerdranch#33
Apologies - this is a duplicate of #28 I did not originally notice that as I was working with an empty list. |
Given a grid where the first row is not filled up to the end, `firstRowChild` will become null at some point. Resolves: bignerdranch#33
GridDividerItemDecoration.drawHorizontalDividers()
assumes that the number of items in the list is at least the number of columns in the grid (seeView child = parent.getChildAt(i);
)There needs to be a null check before the next line that assumes
child
is not null.The text was updated successfully, but these errors were encountered: