Skip to content

Commit 3fc19d8

Browse files
committed
loadRepoOwner must not attempt to use a nil action.Repo
1 parent 4b4da6b commit 3fc19d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

models/action_list.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ func (actions ActionList) loadRepoOwner(e db.Engine, userMap map[int64]*user_mod
8080
}
8181

8282
for _, action := range actions {
83+
if action.Repo == nil {
84+
continue
85+
}
8386
repoOwner, ok := userMap[action.Repo.OwnerID]
8487
if !ok {
8588
repoOwner, err = user_model.GetUserByID(action.Repo.OwnerID)

0 commit comments

Comments
 (0)