-
Notifications
You must be signed in to change notification settings - Fork 704
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 bug with calling SwipeItems Clear function would crash #1383
Fix bug with calling SwipeItems Clear function would crash #1383
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I ran the test you authored without the product change and it is passing. Are you sure that the test exercises the issue? |
Hmm, yes I see. I will fix the TestApp to correctly represent the situation described in #891. |
I fixed the test page. Now without the fix, the test should crash. |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @chingucoding! 🐱🏍 |
Always happy to help 😄 |
🎉 Handy links: |
🎉 Handy links: |
Description
Added checks for the code in question where m_interactionTracker would be null when calling clear.
When no new SwipeItem has been added to the SwipeItems object that
Clear
was invoked on, the SwipeControls that uses this SwipeItems object will not perform swipe operations in that direction.Motivation and Context
Fixes #891
How Has This Been Tested?
Tested manually and by adding a new unit test (CanClearItemsWithoutCrashing) and a new test page (SwipeControlClearPage)
Screenshots (if appropriate):