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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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 cherrypick:4.2 cherrypick:4.3
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)
2 participants