Commit e7c8c10
committed
Fix nil pointer dereference fatal
```
The command '/bin/sh -c RAILS_ENV=${rails_env} HOST=${host} bundle exec rake assets:precompile' returned a non-zero code: 1
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x886d50]
goroutine 1 [running]:
github.com/firehydrant/fhcli/pkg/cli.executeCmd(0xc000106840, 0xc000445980, 0x14)
/go/src/github.com/firehydrant/fhcli/pkg/cli/execute.go:58 +0x850
github.com/firehydrant/fhcli/vendor/gopkg.in/urfave/cli%2ev1.HandleAction(0x8eaee0, 0x9da7e8, 0xc000106840, 0xc0000ac800, 0x0)
/go/src/github.com/firehydrant/fhcli/vendor/gopkg.in/urfave/cli.v1/app.go:490 +0xc8
github.com/firehydrant/fhcli/vendor/gopkg.in/urfave/cli%2ev1.Command.Run(0x9b7ca0, 0x7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9d0792, 0x3b, 0x0, ...)
/go/src/github.com/firehydrant/fhcli/vendor/gopkg.in/urfave/cli.v1/command.go:210 +0x9a2
github.com/firehydrant/fhcli/vendor/gopkg.in/urfave/cli%2ev1.(*App).Run(0xc0000d84e0, 0xc00001c1a0, 0xd, 0xd, 0x0, 0x0)
/go/src/github.com/firehydrant/fhcli/vendor/gopkg.in/urfave/cli.v1/app.go:255 +0x687
main.main()
/go/src/github.com/firehydrant/fhcli/cmd/main.go:16 +0x87
Exited with code 2
```1 parent 708b705 commit e7c8c10
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments