command/apply: check if state non-nil for interrupt
This commit is contained in:
parent
0f45ebbdc3
commit
9759606989
|
@ -160,7 +160,7 @@ func (c *ApplyCommand) Run(args []string) int {
|
|||
}
|
||||
|
||||
// If we have outputs, then output those at the end.
|
||||
if len(state.Outputs) > 0 {
|
||||
if state != nil && len(state.Outputs) > 0 {
|
||||
outputBuf := new(bytes.Buffer)
|
||||
outputBuf.WriteString("[reset][bold][green]\nOutputs:\n\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue