Skip to content

Commit ae66102

Browse files
pditommasoclaude
andcommitted
Fix ExecutorRetryConfig null pointer exception
Fixed casting issue in ExecutorConfig where opts.retry Map was incorrectly cast to ExecutorRetryConfig, resulting in null value and subsequent NPE when calling getReason(). Now properly instantiates ExecutorRetryConfig from Map or creates default instance. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 3bcb411 commit ae66102

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/nextflow/src/main/groovy/nextflow/executor/ExecutorConfig.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class ExecutorConfig implements ConfigScope {
176176
queueGlobalStatus = opts.queueGlobalStatus as boolean
177177
queueSize = opts.queueSize as Integer
178178
queueStatInterval = opts.queueStatInterval as Duration ?: Duration.of('1min')
179-
retry = opts.retry as ExecutorRetryConfig
179+
retry = opts.retry ? new ExecutorRetryConfig(opts.retry as Map) : new ExecutorRetryConfig(Map.of())
180180
submitRateLimit = opts.submitRateLimit
181181

182182
// preserve executor-specific opts

0 commit comments

Comments
 (0)