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 beyond bounds for empty array #13

Closed
ostanik opened this issue Oct 2, 2016 · 1 comment
Closed

Index 0 beyond bounds for empty array #13

ostanik opened this issue Oct 2, 2016 · 1 comment

Comments

@ostanik
Copy link
Contributor

ostanik commented Oct 2, 2016

This bug is caused when the the textfieldEnabled is set to false and occurs a touch into de textField, the method - (void)removeChosenTagFromIndexPath:(NSIndexPath *)indexPath is throwing the error: index 0 beyond bounds for empty array.

Thats because the array chosenTags is not set.

i made a pull request with an hotfix, but i don't know if is the better approach.

@paulrolfe
Copy link
Owner

Looks good, that makes it safer for sure. I merged it.

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

2 participants