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 picking game media folder on Windows due to null directory #387

Merged
merged 1 commit into from
Jan 19, 2025

Conversation

rsubtil
Copy link
Member

@rsubtil rsubtil commented Jan 18, 2025

It appears that opening an invalid directory on Windows returns a null instance, unlike on Linux. Because this is not tested explicitly, it then crashes due to dereferencing it. This check prevents this on Windows.

@rsubtil
Copy link
Member Author

rsubtil commented Jan 19, 2025

From testing in the Discord, it seems this fixed the issue.

@rsubtil rsubtil merged commit 7a6dcda into main Jan 19, 2025
15 of 21 checks passed
@rsubtil rsubtil deleted the fix_windows_crash_with_null_dir branch January 19, 2025 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant