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: handle missing service and route names detecting duplicates #945

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

czeslavo
Copy link
Contributor

As both Service and Route names are allowed to be empty, we have to account for this case in the code detecting duplicates and short-circuit when the target entity has no name to prevent panics.

Fixes #944.

@czeslavo czeslavo requested a review from a team June 14, 2023 12:10
@czeslavo czeslavo added the bug Something isn't working label Jun 14, 2023
Copy link

@Koumbaya Koumbaya left a comment

Choose a reason for hiding this comment

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

Nice

@czeslavo czeslavo merged commit fc30e45 into main Jun 14, 2023
@czeslavo czeslavo deleted the fix-missing-name-in-duplicates branch June 14, 2023 12:40
AntoineJac pushed a commit that referenced this pull request Jan 23, 2024
As both Service and Route names are allowed to be empty, we have to account for 
this case in the code detecting duplicates and short-circuit when the target
entity has no name to prevent panics.
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 this pull request may close these issues.

Nil pointer dereference for deleteDuplicateRoute
3 participants