Skip to content

Commit

Permalink
TaskDef name null NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh Jagannath Padave authored and Shailesh Jagannath Padave committed Jan 9, 2025
1 parent 2a985b8 commit d5d96a5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,9 @@ public TaskDef getTaskDefinition() {
* @param taskDefinition Task definition
*/
public void setTaskDefinition(TaskDef taskDefinition) {
if (taskDefinition != null && taskDefinition.getName() == null) {
taskDefinition.setName(this.name);
}
this.taskDefinition = taskDefinition;
}

Expand Down

0 comments on commit d5d96a5

Please sign in to comment.