Skip to content

Add error checks for DirAccess creation#82347

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
SaracenOne:dir_access_checks
Sep 26, 2023
Merged

Add error checks for DirAccess creation#82347
akien-mga merged 1 commit intogodotengine:masterfrom
SaracenOne:dir_access_checks

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
@SaracenOne SaracenOne requested a review from a team 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
@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