mirror of https://github.com/go-gitea/gitea.git
Avoid unnecessary 500 panic when a commit doesn't exist (#28719)
In #26851, it assumed that `Commit` always exists when `PageIsDiff==true`. But for a 404 page, the `Commit` doesn't exist, so the following code would cause panic because nil value can't be passed as string parameter to `IsMultilineCommitMessage(string)` (or the StringUtils.Cut in later PRs)pull/28716/head^2
parent
a43c7b81af
commit
c5901b622d
Loading…
Reference in New Issue