Skip to content

Commit

Permalink
Fix cast exception when running peon tasks(#16271)
Browse files Browse the repository at this point in the history
  • Loading branch information
soullkk committed Apr 16, 2024
1 parent b0c5184 commit a85bb73
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -314,9 +314,10 @@ public TaskStatus call()
if (context != null) {
for (String propName : context.keySet()) {
if (propName.startsWith(CHILD_PROPERTY_PREFIX)) {
Object contextValue = task.getContextValue(propName);
command.addSystemProperty(
propName.substring(CHILD_PROPERTY_PREFIX.length()),
task.getContextValue(propName)
contextValue == null ? null : contextValue.toString()
);
}
}
Expand Down

0 comments on commit a85bb73

Please sign in to comment.