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

Check for invalid indexPath to avoid crashes #35

Merged
merged 1 commit into from
Sep 15, 2019

Conversation

bunnyhero
Copy link
Contributor

I have experienced crashes when certain collection view delegate methods (related to headers and footers) are called with indexPaths equal to (section: NSNotFound, item: NSNotFound). I added range checks similar to what you already had in other delegate methods.

@malcommac malcommac added the bug Something isn't working label Sep 15, 2019
@malcommac malcommac added this to the 1.1.0 milestone Sep 15, 2019
@malcommac malcommac merged commit 6493bd1 into malcommac:develop Sep 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants