Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@mahesh-panchal

Description

@mahesh-panchal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginfrastructuretemplatenf-core pipeline/component template

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions