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

C#: Fix build logger unable to handle an event without an associated file #96293

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

RedOrbweaver
Copy link
Contributor

Port of #96127 for Godot 4.x

The C# build logger cannot handle a build event (warning or error) if the e.File argument is null. While MSBuild never generates those, some addons might (Fody, as shown in the 3.x pull request). This PR adds a simple null-check to mitigate it.

Copy link
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@raulsntos raulsntos added cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Aug 29, 2024
@akien-mga akien-mga changed the title Fix build logger unable to handle an event without an associated file Fix .NET build logger unable to handle an event without an associated file Aug 30, 2024
@akien-mga akien-mga changed the title Fix .NET build logger unable to handle an event without an associated file C#: Fix build logger unable to handle an event without an associated file Aug 30, 2024
@akien-mga akien-mga merged commit 69d6106 into godotengine:master Aug 30, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@akien-mga
Copy link
Member

Cherry-picked for 4.3.1.

@akien-mga akien-mga removed the cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release label Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release topic:dotnet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants