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 when trying to save with no scenes and scripts open #48818

Merged
merged 1 commit into from
May 19, 2021

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented May 18, 2021

This bug was introduced by #48578. Adding a null check fixes the crash while preserving the expected behavior.

This crash could occur when attempting to save project settings when no scenes or scripts are open (which is common in a brand new project).

This could occur when attempting to save project settings when
no scenes or scripts are open (which is common in a brand new project).
@Calinou Calinou requested a review from a team as a code owner May 18, 2021 17:53
@Calinou Calinou added bug cherrypick:3.3 cherrypick:3.x Considered for cherry-picking into a future 3.x release crash topic:editor labels May 18, 2021
@Calinou Calinou added this to the 4.0 milestone May 18, 2021
@akien-mga akien-mga merged commit f1f5b92 into godotengine:master May 19, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label May 19, 2021
@akien-mga
Copy link
Member

Not relevant for 3.3.x as #48758 wasn't cherry-picked.

@Calinou Calinou deleted the fix-script-editor-save-crash branch August 3, 2021 15:59
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.

2 participants