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

Fix 51889 that cause a crash when you click on an AnimationTree that contains an invalid node #51890

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

fabriceci
Copy link
Contributor

@fabriceci fabriceci commented Aug 19, 2021

fix #51889

The project contains an invalid node (I don't check why, so maybe there is a root issue):

Screenshot 2021-08-19 at 15 54 09

But the following code doesn't check if the reference is valid, that lead to a crash:

Screenshot 2021-08-19 at 15 10 02

Is it an exaggeration to say every time we retrieve a reference in (Ref<>), we must check if the reference is valid? (If yes, it worth it to take time to verify that in the code base)

@akien-mga akien-mga merged commit fb8487e into godotengine:master Aug 19, 2021
@akien-mga
Copy link
Member

Thanks!

@fabriceci fabriceci deleted the crash-animation-blend-tree branch August 31, 2021 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when click on an AnimationTree node that contains an invalid node.
3 participants