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 print an error when decoding a null Ref<T> #1616

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

dsnopek
Copy link
Collaborator

@dsnopek dsnopek commented Oct 7, 2024

Fixes #1615

It's not an error to receive a null pointer for a Ref<T> - that's just how null reference values are encoded - so we shouldn't print an error message. This switches away from ERR_FAIL_NULL_V() to just a normal if statement.

@dsnopek
Copy link
Collaborator Author

dsnopek commented Oct 29, 2024

Discussed at the GDExtension meeting and folks thought it looked good.

@Maximilian-Seitz
Copy link

Is anything stopping this from being merged?

@dsnopek dsnopek merged commit bb56706 into godotengine:master Dec 2, 2024
12 checks passed
@dsnopek
Copy link
Collaborator Author

dsnopek commented Dec 2, 2024

Is anything stopping this from being merged?

Nope, I just lost track of it :-)

@dsnopek
Copy link
Collaborator Author

dsnopek commented Jan 27, 2025

Cherry-picked for 4.2 in PR #1694

@dsnopek
Copy link
Collaborator Author

dsnopek commented Jan 27, 2025

Cherry-picked for 4.3 in PR #1695

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This has been identified as a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing null for RefCounted argument from GDScript prints error (though the function runs without problems)
3 participants