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

Prevent NPE on partial match of compare URL (part 2) #18490

Closed

Conversation

zeripath
Copy link
Contributor

Unfortunately #18472 only fixed part of the ways a nil pointer can occur in the
compare url. We also need to ensure that the match array has all the matches present.

Fix #18471
Related #18472

Signed-off-by: Andrew Thornton [email protected]

Unfortunately go-gitea#18472 only fixed part of the ways a nil pointer can occur in the
compare url. We also need to ensure that the match array has all the matches present.

Fix go-gitea#18471
Related go-gitea#18472

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added type/bug skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. backport/v1.16 labels Jan 31, 2022
@zeripath zeripath added this to the 1.17.0 milestone Jan 31, 2022
zeripath added a commit to zeripath/gitea that referenced this pull request Jan 31, 2022
Backport go-gitea#18490

Unfortunately go-gitea#18472 only fixed part of the ways a nil pointer can occur in the
compare url. We also need to ensure that the match array has all the matches present.

Fix go-gitea#18471
Related go-gitea#18472

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath closed this Jan 31, 2022
@zeripath zeripath deleted the fix-18473-prevent-npe-part-deux branch January 31, 2022 17:50
@zeripath
Copy link
Contributor Author

Ignore me I'm an idiot!

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 31, 2022
@zeripath zeripath removed this from the 1.17.0 milestone Feb 1, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gitea 1.16.0 crash when click on repo link
2 participants