0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-26 19:46:49 +01:00
gitea/routers/web
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
..
admin
dev
events
explore
org
repo Prevent NPE on invalid diff (#17197) 2021-09-30 21:31:02 +02:00
user
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go