From 9759606989ff20b514bf6ec12ccb138da62c8337 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 26 Jul 2014 21:28:42 -0700 Subject: [PATCH] command/apply: check if state non-nil for interrupt --- command/apply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/apply.go b/command/apply.go index 1aef692e7..62daea217 100644 --- a/command/apply.go +++ b/command/apply.go @@ -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")