-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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: check element for null in case of a disposed player #6701
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
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.
Should we do this in most of the functions in this file?
It's possible but generally they expose worse errors which are otherwise hidden by this null check. |
I wonder if we should log a warning in this case then @gkatsev |
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.
We spoke about it and while we still have reservations about it, if we add a log for this and do the null check we can merge it in.
@brandonocasey @gkatsev does this address my errors like this?
in minified code I had seen it as coming from this line, when
|
@DaveStein could be. Do you happen to have a live test page for this that you can share? |
@gkatsev unfortunately i haven't reproduced this yet myself but just see it in error logs. |
@DaveStein if you try latest |
Thanks for the update @gkatsev. Since I haven't reproduced this locally, I'll need to wait for the release to be able to update my repo and deploy it. I imagine the worst case scenario for a release update is that my issue won't be fixed. If it does, I'll comment in this thread as well so future people searching Google for the error will see this PR fixes both issues. |
Yes, once we get a release out, please circle back whether it's fixed or not. |
Hi, when are you planning to merge this pr? |
Any plans to merge this in next release ? Or does it break something ? |
Congrats on merging your first pull request! 🎉🎉🎉 |
Description
#5706
Specific Changes proposed
Fail fast
Requirements Checklist