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