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

Add error checks for DirAccess creation #82347

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

SaracenOne
Copy link
Member

I was noticed some crashes with invalid DirAccess objects. While I've not been able to determine the root cause yet, for safety, I've put error checks in places where a null DirAccess object might be returned in order to prevent hard crashes.

@SaracenOne SaracenOne added this to the 4.2 milestone Sep 26, 2023
@SaracenOne SaracenOne requested review from a team as code owners September 26, 2023 02:24
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

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

Seems fine. We do have checks like that in many places and this PR just adds missing ones.
I only wonder whether they should be smarter than a generic fail in every case.

@akien-mga akien-mga merged commit da91cf9 into godotengine:master Sep 26, 2023
15 checks passed
@akien-mga
Copy link
Member

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.

3 participants