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(CLI): crash when target/params section is empty #STRINGS-921 #722

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

jablan
Copy link
Collaborator

@jablan jablan commented Nov 25, 2024

@jablan jablan changed the title Fix crash when target/params section is empty #STRINGS-921 fix(CLI): crash when target/params section is empty #STRINGS-921 Nov 25, 2024
@jablan jablan requested a review from theSoenke November 26, 2024 07:19
if target.Params != nil {
return target.Params.Branch.Value()
}
return ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wondering whether this should be an empty string or nil when there is no branch? You could return nil when the return type is *string

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

that would be quite a bigger change, but I can try

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@theSoenke sorry, I took a look, basically everywhere, branch is a string (not a pointer), so changing it would be a big effort

Things like:



etc etc

Copy link
Collaborator

Choose a reason for hiding this comment

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

no worries! just wanted to check whether it makes sense

@jablan jablan merged commit 03032c4 into master Nov 27, 2024
12 of 13 checks passed
@jablan jablan deleted the 921-fix-segmentation-fault-pull branch November 27, 2024 12:51
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.

2 participants