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 crash on null object in ClassDB.get_property() and set_property() (Fix #47573) #47576

Merged

Conversation

jmb462
Copy link
Contributor

@jmb462 jmb462 commented Apr 2, 2021

Fix #47573

Issue fixed :

Crash on
ClassDB.class_get_property(null,"") or ClassDB.class_set_property(null,"","")

Fix proposal :

Adding ERR_FAIL_NULL_V check in ClassDB::set_property() and ClassDB::get_property()

@jmb462 jmb462 requested a review from a team as a code owner April 2, 2021 18:09
@jmb462 jmb462 changed the title Fix crash on null class in ClassDB.get_property() and set_property() (Fix #47573) Fix crash on null object in ClassDB.get_property() and set_property() (Fix #47573) Apr 2, 2021
@akien-mga akien-mga added bug cherrypick:3.x Considered for cherry-picking into a future 3.x release crash topic:core labels Apr 2, 2021
@akien-mga akien-mga added this to the 4.0 milestone Apr 2, 2021
@akien-mga akien-mga merged commit 9859f6d into godotengine:master Apr 2, 2021
@akien-mga
Copy link
Member

Thanks!

@jmb462 jmb462 deleted the fix-classDB-class_get_property-crash branch April 2, 2021 21:47
@akien-mga
Copy link
Member

Cherry-picked for 3.3.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Apr 5, 2021
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.

Executing ClassDB.class_get_property(null,"") crashes Godot
2 participants