From 368a266a65271145b0f1a2d8293f16e00d822fd2 Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Sun, 20 Oct 2024 19:47:26 +0200 Subject: [PATCH] Prevent NPE when containerInfo is null Signed-off-by: Paolo Di Tommaso --- .../nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy index 5becd04111..cd72f69379 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/TaskRun.groovy @@ -694,7 +694,8 @@ class TaskRun implements Cloneable { final info = containerResolver().resolveImage(this, configImage as String) // track the key of the container used - this.containerKey = info.hashKey + if( info!=null ) + this.containerKey = info.hashKey // return the info return info }