Skip to content

Commit

Permalink
Add null check for remoteBinDir in TesTaskHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeckman314 committed Dec 21, 2023
1 parent 0f36a79 commit a263da6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,10 @@ class TesTaskHandler extends TaskHandler {
body.addInputsItem(inItem(scriptFile))
body.addInputsItem(inItem(wrapperFile))
Path remoteBinDir = executor.getRemoteBinDir()
Files.newDirectoryStream(remoteBinDir).each { path ->
body.addInputsItem(inItem(path, null ,true))
if (remoteBinDir != null) {
Files.newDirectoryStream(remoteBinDir).each { path ->
body.addInputsItem(inItem(path, null, true))
}
}

// add task input files
Expand Down

0 comments on commit a263da6

Please sign in to comment.