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
#2922 RotatorTile _nextElement null exception #2969
Conversation
|
Thanks @SoundersFan, it looks like we try and start the timer in both the |
We discussed, we can address the timer question separately. Will test quick later so we can merge this. |
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 @SoundersFan, tested it out and it looks good!
Tested on my end and seems to be performing as expected. All clear! |
Guard against dereferencing null _nextElement
Issue: #2922
PR Type
What kind of change does this PR introduce?
What is the current behavior?
When RotatorTile is initially Collapsed the OnApplyTemplate() method is not called before the control starts it's background timer to auto-advance the items. In advancing the _nextElement is dereferenced but since OnApplyTemplate has not run, it is still null and, kaboom.
What is the new behavior?
The null reference is avoided and no kaboom
PR Checklist
Please check if your PR fulfills the following requirements:
Other information