Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Panic index out of range; selectedIndex should not be a negative number #271

Merged
merged 1 commit into from Feb 17, 2020

Conversation

jcpowermac
Copy link

When using AskOne, filtering and using arrow keys can result in
a panic. Add checks to make sure that selectedIndex does
not contain a negative number.

When using AskOne, filtering and using arrow keys can result in
a panic.  Add checks to make sure that selectedIndex does
not contain a negative number.
@jcpowermac
Copy link
Author

Additional details in BZ if curious: https://bugzilla.redhat.com/show_bug.cgi?id=1775569

Copy link
Owner

@AlecAivazis AlecAivazis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense. Thanks for the contribution!

@AlecAivazis AlecAivazis merged commit 6773bdf into AlecAivazis:v1 Feb 17, 2020
@AlecAivazis
Copy link
Owner

Would you mind cherry picking this onto v2?

@jcpowermac
Copy link
Author

@AlecAivazis I have test code that I can try to see if I can reproduce with v2. There were differences so I don't think it will cleaning CP.

@AlecAivazis
Copy link
Owner

Ah that might definitely be the case. If you have the time to verify, that would save me having to add another item to my list of stuff to do 🙌

@jcpowermac
Copy link
Author

@AlecAivazis tested with v2 no panic.

@AlecAivazis
Copy link
Owner

awesome! Thanks for checking

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants