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

Don't dereference null pointer if elements don't exist #277

Merged
merged 1 commit into from Apr 29, 2024

Conversation

jes
Copy link
Contributor

@jes jes commented Apr 28, 2024

StageTestbed.ts tried to use playButton, statusElement, and infoElement without checking whether they existed. This change fixes that.

Fixes #276

@shakiba
Copy link
Collaborator

shakiba commented Apr 29, 2024

Looks good, thanks for the fix!

@jes
Copy link
Contributor Author

jes commented Apr 29, 2024

Thanks, btw where is the documentation source? I could submit a PR that would fix that up to add the testbed elements. I also noticed a few errors in the example in https://piqnt.com/planck.js/docs/rendering that I would like to fix.

@shakiba shakiba merged commit fc913b1 into piqnt:master Apr 29, 2024
1 check passed
@shakiba
Copy link
Collaborator

shakiba commented Apr 29, 2024

@jes Thanks for making updates! I added used manula docs to /docs folder in this repo.

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

Successfully merging this pull request may close these issues.

Script tag: Uncaught TypeError: t is null
2 participants