Closed
Description
- Gitea version:
- Git version: 345bc06
- Operating system: docker container
- Database:
- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Log gist:
Description
Opening a new pull request for a freshly pushed branch sometimes gives an error with an unformated html file and the following message in a <pre>
tag:
template: repo/diff/box:109:21: executing "repo/diff/box" at <call $.IsImageFile $file.Name>: error calling call: runtime error: invalid memory address or nil pointer dereference
url for this is gitea.xyz/user/repo/compare/master...branch
Not sure if this helps but this is the last line of the gitea.log:
_issues`, `05/14 12:03:42 ^[[0m^[[32m...xorm/session_find.go:195:^[[32mnoCacheFind()^[[0m ^[[1;32m[I]^[[0m [SQL] ^[[1mSELECT `id`, `repo_id`, `name`, `content`, `is_closed`, `num_issues`, `05/14 12:03:42 ^[[0m^[[32m...xorm/session_find.go:195:^[[32mnoCacheFind()^[[0m ^[[1;32m[I]^[[0m [SQL] ^[[1mSELECT `id`, `user_id`, `repo_id`, `mode` FROM `access` WHERE (repo_id 05/14 12:03:42 ^[[0m^[[32m...s/context/context.go:138:^[[32mHTML()^[[0m ^[[1;34m[D]^[[0m Template: ^[[1mrepo/pulls/compare^[[0m