Skip to content

Commit

Permalink
Fix a missing nil-check in remote list generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kennylevinsen committed Sep 28, 2015
1 parent beed2e5 commit 12d4c85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ func main() {
continue outer
}

if session.User == nil {
continue
}

for _, u := range h.Users {
if u == session.User.Name {
session.Remotes = append(session.Remotes, h.Address)
Expand Down

0 comments on commit 12d4c85

Please sign in to comment.