Skip to content

Fix GDExtension Object/Node::to_string to check is_valid before returning the result#105546

Merged
Repiteo merged 1 commit intogodotengine:masterfrom
Splizard:fix_gdextension_tostring
Apr 28, 2025
Merged

Fix GDExtension Object/Node::to_string to check is_valid before returning the result#105546
Repiteo merged 1 commit intogodotengine:masterfrom
Splizard:fix_gdextension_tostring

Conversation

@Splizard
Copy link
Contributor

At best, this results in an empty string, at worst, the result is never initialized when is_valid is false.

…ning the result

at best, this results in an empty string, at worst, the result is never
initialised when is_valid is false.
@Splizard Splizard requested a review from a team as a code owner April 18, 2025 22:47
@AThousandShips AThousandShips changed the title fix gdextension Object/Node::to_string to check is_valid before returning the result Fix GDExtension Object/Node::to_string to check is_valid before returning the result Apr 19, 2025
@AThousandShips AThousandShips added this to the 4.5 milestone Apr 19, 2025
@dsnopek dsnopek requested a review from a team April 21, 2025 12:33
Copy link
Contributor

@dsnopek dsnopek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks! These changes look correct to me

@Repiteo Repiteo merged commit df78d4a into godotengine:master Apr 28, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Apr 28, 2025

Thanks!

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.

4 participants