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

Faulty enum comparison #308

Closed
ValentinFutterer opened this issue Dec 17, 2024 · 0 comments · Fixed by #314
Closed

Faulty enum comparison #308

ValentinFutterer opened this issue Dec 17, 2024 · 0 comments · Fixed by #314
Labels
bug Something isn't working

Comments

@ValentinFutterer
Copy link
Collaborator

ValentinFutterer commented Dec 17, 2024

Describe the bug
In AbstractTemplateExportScienceEuropeComponents, enums are compared using toString. They should be compared with a null safe Objects.equal though. This error causes the coordinator export to not export the id.

image

Also try to find other instances of this wrong comparison, if they still occur.

Is this a regression?
Yes.

Expected behavior
Correct comparison should be done, fixing the bug.

Environment

  • Damap version 4.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants