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 09b1930
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -24,6 +24,7 @@
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Joiner;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
Expand Down Expand Up @@ -316,7 +317,7 @@ public TaskStatus call()
if (propName.startsWith(CHILD_PROPERTY_PREFIX)) {
command.addSystemProperty(
propName.substring(CHILD_PROPERTY_PREFIX.length()),
task.getContextValue(propName)
Preconditions.checkNotNull(task.getContextValue(propName), propName).toString()
);
}
}
Expand Down

0 comments on commit 09b1930

Please sign in to comment.