You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2019/10/01 08:04:50 UTC

[camel-k] branch master updated: fix: Add nil check for dev mode intergration phase watch result

This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new 92a4795  fix: Add nil check for dev mode intergration phase watch result
92a4795 is described below

commit 92a4795d6a853a10beb39d84af8f88a747ca90b9
Author: James Netherton <ja...@gmail.com>
AuthorDate: Tue Oct 1 08:11:44 2019 +0100

    fix: Add nil check for dev mode intergration phase watch result
    
    fixes #968
---
 pkg/cmd/run.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go
index 51b7125..97e4ff6 100644
--- a/pkg/cmd/run.go
+++ b/pkg/cmd/run.go
@@ -209,7 +209,7 @@ func (o *runCmdOptions) run(_ *cobra.Command, args []string) error {
 				return err
 			}
 
-			if *integrationPhase == v1alpha1.IntegrationPhaseRunning || *integrationPhase == v1alpha1.IntegrationPhaseError {
+			if integrationPhase == nil || *integrationPhase == v1alpha1.IntegrationPhaseRunning || *integrationPhase == v1alpha1.IntegrationPhaseError {
 				break
 			}