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

[macOS] Add null checks for NSString stringWithUTF8String. #88694

Merged
merged 1 commit into from
Feb 25, 2024

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Feb 23, 2024

Should fix #88686 (but I can't reproduce it to test).

@bruvzg bruvzg added this to the 4.3 milestone Feb 23, 2024
@bruvzg bruvzg requested a review from a team as a code owner February 23, 2024 06:21
@Calinou
Copy link
Member

Calinou commented Feb 24, 2024

Strangely, I can't reproduce the original issue with self-compiled builds even if I move them to macos_tools.app/Contents/MacOS/Godot. Therefore, I don't know if this actually resolves the issue.

@stuartcarnie
Copy link
Contributor

I see it in the debugger each time I launch Godot, as there is no __CFBundleIdentifier environment variable

@bruvzg
Copy link
Member Author

bruvzg commented Feb 24, 2024

Maybe it is not set by the debugger. But it should be set for a bundle, or when running from the terminal (to the id of terminal).

@stuartcarnie
Copy link
Contributor

I can confirm it does fix this exception 👍🏻

@akien-mga akien-mga merged commit a030031 into godotengine:master Feb 25, 2024
16 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.

+[NSString stringWithUTF8String:]: NULL cString is printed on every engine startup
4 participants