elasticpath / epcc-cli

MIT License
35 stars 1 forks source link

Avoid panic if runbook variable has no description #465

Closed steve-r-west closed 3 months ago

steve-r-west commented 3 months ago
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x96531a]

goroutine 1 [running]:
github.com/elasticpath/epcc-cli/cmd.processRunbookVariablesOnCommand(0xc000479808, 0xc00011b350, 0xc0001383c0?, 0x0)
        /home/steveramage/development/epcc/cli/epcc-cli/cmd/runbooks.go:423 +0x2fa
github.com/elasticpath/epcc-cli/cmd.initRunbookShowCommands()
        /home/steveramage/development/epcc/cli/epcc-cli/cmd/runbooks.go:160 +0x425
github.com/elasticpath/epcc-cli/cmd.initRunbookCommands()
        /home/steveramage/development/epcc/cli/epcc-cli/cmd/runbooks.go:34 +0x1c
github.com/elasticpath/epcc-cli/cmd.InitializeCmd()
        /home/steveramage/development/epcc/cli/epcc-cli/cmd/root.go:84 +0x29f
main.main()
        /home/steveramage/development/epcc/cli/epcc-cli/main.go:8 +0xf