Skip to content

Commit

Permalink
fix nullref
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsiaw committed May 15, 2020
1 parent d8a599f commit bd667b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,10 @@ func loadEnvVars(envName string, heritageName string) (map[string]string, error)
if err != nil {
return nil, err
}
for k, v := range env.RunEnv.Vars {
result[k] = v
if env.RunEnv != nil {
for k, v := range env.RunEnv.Vars {
result[k] = v
}
}
}
return result, nil
Expand Down

0 comments on commit bd667b7

Please sign in to comment.