Skip to content

Commit

Permalink
fix(test): fix panic when running CI
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 committed Jun 14, 2024
1 parent ecf5d6f commit 97f6cbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions backend/server/services/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,10 @@ func makeProjectOutput(project *models.Project, withLastPipeline bool) (*models.
if err != nil {
return nil, errors.Default.Wrap(err, "Error to get blueprint by project")
}
if err := SanitizeBlueprint(projectOutput.Blueprint); err != nil {
return nil, errors.Convert(err)
if projectOutput.Blueprint != nil {
if err := SanitizeBlueprint(projectOutput.Blueprint); err != nil {
return nil, errors.Convert(err)
}
}
if withLastPipeline {
if projectOutput.Blueprint == nil {
Expand Down

0 comments on commit 97f6cbf

Please sign in to comment.