Skip to content

Commit a3d7329

Browse files
committed
fix: [CI-5410]: solving NPE in case of cron trigger
1 parent 39ec2b4 commit a3d7329

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

332-ci-manager/service/src/main/java/io/harness/ci/execution/integrationstage/IntegrationStageUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ private static ManualExecutionSource handleManualExecution(
403403
}
404404
}
405405

406-
return null;
406+
return ManualExecutionSource.builder().build();
407407
}
408408

409409
public static List<StepElementConfig> getAllSteps(List<ExecutionWrapperConfig> executionWrapperConfigs) {

332-ci-manager/service/src/main/java/io/harness/ci/execution/states/codebase/ScmGitRefManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ public ScmGitRefTaskResponseData fetchCodebaseMetadata(
8989
.getLatestCommitResponse(latestCommitResponse.toByteArray())
9090
.build();
9191
} else {
92-
throw new CIStageExecutionException("Manual codebase git task needs one of PR number, branch or tag");
92+
throw new CIStageExecutionException(
93+
"Manual codebase git task needs one of PR number, branch or tag. Please check if you are passing codebase inputs correctly.");
9394
}
9495
}
9596

0 commit comments

Comments
 (0)