diff --git a/core/trino-main/src/main/java/io/trino/server/remotetask/TaskInfoFetcher.java b/core/trino-main/src/main/java/io/trino/server/remotetask/TaskInfoFetcher.java index 5843c7963637..eaae1e4c35bc 100644 --- a/core/trino-main/src/main/java/io/trino/server/remotetask/TaskInfoFetcher.java +++ b/core/trino-main/src/main/java/io/trino/server/remotetask/TaskInfoFetcher.java @@ -131,7 +131,7 @@ public TaskInfoFetcher( this.spanBuilderFactory = requireNonNull(spanBuilderFactory, "spanBuilderFactory is null"); this.stats = requireNonNull(stats, "stats is null"); this.estimatedMemory = requireNonNull(estimatedMemory, "estimatedMemory is null"); - this.retryPolicy = retryPolicy; + this.retryPolicy = requireNonNull(retryPolicy, "retryPolicy is null"); } public TaskInfo getTaskInfo()