diff --git a/routers/web/repo/pull.go b/routers/web/repo/pull.go index e7deaea7b0..cd4fe4a82b 100644 --- a/routers/web/repo/pull.go +++ b/routers/web/repo/pull.go @@ -958,6 +958,7 @@ func viewPullFiles(ctx *context.Context, specifiedStartCommit, specifiedEndCommi if curCommit == nil { ctx.ServerError("Repo.GitRepo.viewPullFiles", git.ErrNotExist{ID: commitID}) + return } ctx.Data["Commit"] = curCommit