Skip to content

Fix null reference error in workflow output#6374

Merged
bentsherman merged 2 commits intomasterfrom
fix-workflow-output-npe
Sep 3, 2025
Merged

Fix null reference error in workflow output#6374
bentsherman merged 2 commits intomasterfrom
fix-workflow-output-npe

Conversation

@bentsherman
Copy link
Member

Close #6340

This PR fixes a bug where normalizePath() in PublishOp was not supplying the correct filename to the dynamic path closure.

It was supplying the simple file name instead of the path relative to the task directory, which caused an error when the file included a nested directory.

The output-dsl.nf e2e test has been updated to test this condition. The summary task is modeled after multiqc which creates nested output files.

Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman added this to the 25.10 milestone Sep 2, 2025
@bentsherman bentsherman requested a review from jorgee September 2, 2025 16:15
@netlify
Copy link

netlify bot commented Sep 2, 2025

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 0ddeef9
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68b83c7680028c00085ae8c2

@bentsherman bentsherman merged commit d1f43c5 into master Sep 3, 2025
22 checks passed
@bentsherman bentsherman deleted the fix-workflow-output-npe branch September 3, 2025 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workflow output with file publish targets causes NullPointerException

2 participants