-
Notifications
You must be signed in to change notification settings - Fork 3.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
Prevent error when name is null or undefined (fixes #8804) #8832
Prevent error when name is null or undefined (fixes #8804) #8832
Conversation
Thank you so much for the pull request @YonatanKra! I noticed this is your first pull request and I wanted to say welcome to the Cesium community! The Pull Request Guidelines is a handy reference for making sure your PR gets accepted quickly, so make sure to skim that.
Reviewers, don't forget to make sure that:
|
b2f3735
to
e938112
Compare
e938112
to
6136dfe
Compare
Thanks for the PR @YonatanKra. I'll need to find some time to dig into this a little more to make sure the check happens in the right place. If it happens for name, I would expect it happens for some other properties as well so there might be a more central place for the check. |
@mramato I looked at the properties involved. cesium/Source/DataSources/Entity.js Line 144 in c3e375d
The error happens because cesium/Source/DataSources/Entity.js Line 604 in c3e375d
"name" in this is true - hence, it throws the error.
Actually... a better fix would be to just remove |
@mramato |
bump @mramato |
Thanks again for your contribution @YonatanKra! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
…structor-throws-on-null-name # Conflicts: # CHANGES.md # CONTRIBUTORS.md
Thanks again for the PR @YonatanKra! The issue here was a little more subtle than I thought and also affected |
fixes #8804