diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-01-07 18:20:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-07 18:20:22 +0800 |
commit | c5901b622dd5fae8da336b94150e63292489afed (patch) | |
tree | 1e7042bc2f4a402accf2305fc23dd00a22d2a360 /.dockerignore | |
parent | a43c7b81af2dad95149d2dc67edc141e1ab92d7c (diff) | |
download | gitea-c5901b622dd5fae8da336b94150e63292489afed.tar.gz gitea-c5901b622dd5fae8da336b94150e63292489afed.zip |
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)
Diffstat (limited to '.dockerignore')
0 files changed, 0 insertions, 0 deletions