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

Fix 33 - GridDividerItemDecoration crashes on an empty list #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mobiRic
Copy link

@mobiRic mobiRic commented Mar 2, 2018

Fixes #33

When the first row of the grid is not fully populated, firstRowChild ends up being null. This is the simplest fix.

Another way may be to change the row calculation logic as in PR #35 .


I hope you do not mind adding the comment there - I spent quite a long time trying to figure out the purpose of some of the variables and I hope this comment helps future maintainers.

As with all contributions to foreign repos, I'm happy to change the styling to be consistent with your team so let me know what I should change.

mobiRic added 2 commits March 2, 2018 08:22
Given a grid where the first row is not filled up to the end, `firstRowChild` will become null at some point.

Resolves: bignerdranch#33
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

Successfully merging this pull request may close these issues.

GridDividerItemDecoration crashes on an empty list
1 participant