command/apply: check if state non-nil for interrupt

This commit is contained in:
Mitchell Hashimoto 2014-07-26 21:28:42 -07:00
parent 0f45ebbdc3
commit 9759606989
1 changed files with 1 additions and 1 deletions

View File

@ -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")