0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-18 16:14:28 +01:00
gitea/routers/web/repo
zeripath 206ea10b45
Prevent NPE on invalid diff (#17197)
* Prevent NPE on invalid diff

If ParseCompareInfo returns a nil compare info the defer function needs to ensure
that it does not attempt to close the HeadGitRepo.

Fix #17193

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add TEST

Co-authored-by: 6543 <6543@obermui.de>
2021-09-30 21:31:02 +02:00
..
activity.go
attachment.go
blame.go
branch.go
commit.go
compare.go Prevent NPE on invalid diff (#17197) 2021-09-30 21:31:02 +02:00
download.go
editor_test.go
editor.go
http_test.go
http.go
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go
projects_test.go
projects.go
pull_review.go
pull.go Prevent NPE on invalid diff (#17197) 2021-09-30 21:31:02 +02:00
release_test.go
release.go
repo.go
search.go
setting_protected_branch.go
setting.go
settings_test.go
tag.go
topic.go
view.go
webhook.go
wiki_test.go
wiki.go