Skip to content

Commit

Permalink
fix nil pointer when running task created by github webhook (#24)
Browse files Browse the repository at this point in the history
Signed-off-by: yelei <[email protected]>

Co-authored-by: yelei <[email protected]>
  • Loading branch information
wanderleaf and yelei authored May 25, 2021
1 parent 6eb1264 commit 11a0f3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (waf *workflowArgsFactory) Update(product *commonmodels.Product, args *comm
target.Builds = append(target.Builds, repo)
}

if workflow.TestStage.Enabled {
if workflow.TestStage != nil && workflow.TestStage.Enabled {
testArgs := make([]*commonmodels.TestArgs, 0)
for _, testName := range workflow.TestStage.TestNames {
testArgs = append(testArgs, &commonmodels.TestArgs{
Expand Down

0 comments on commit 11a0f3b

Please sign in to comment.