Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null pointer exception from email template when run fails. #1399

Closed
mahesh-panchal opened this issue Feb 8, 2022 · 0 comments
Closed

Null pointer exception from email template when run fails. #1399

mahesh-panchal opened this issue Feb 8, 2022 · 0 comments
Labels
bug Something isn't working infrastructure template nf-core pipeline/component template

Comments

@mahesh-panchal
Copy link
Member

Description of the bug

When a run fails to generate a MultiQC report, the email template code throws a NullPointerException from Line 129 of NfcoreTemplate.nf

Specifically in:

if ( mqc_report.size() <= max_multiqc_email_size.toBytes() ) {

mqc_report is null so calling size() throws an exception.

Using the safe navigation operator doesn't fix it since null <= Number results in true.

Discovered this bug from the Nextflow log in nf-core/rnaseq#760

Command used and terminal output

No response

System information

No response

@mahesh-panchal mahesh-panchal added the bug Something isn't working label Feb 8, 2022
@ewels ewels added the template nf-core pipeline/component template label Mar 15, 2022
@github-project-automation github-project-automation bot moved this to Todo (Hackathon General) in nf-core Hackathon March 2023 Mar 21, 2023
@Furentsu Furentsu self-assigned this Mar 27, 2023
@Furentsu Furentsu moved this from Todo to In Progress in nf-core Hackathon March 2023 Mar 27, 2023
@Furentsu Furentsu removed their assignment Mar 28, 2023
@mahesh-panchal mahesh-panchal closed this as not planned Won't fix, can't repro, duplicate, stale May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working infrastructure template nf-core pipeline/component template
Projects
No open projects
Status: In Progress
Development

No branches or pull requests

4 participants