From 74687a8a85abd173639b6d5e9b90f8b42ce09d0d Mon Sep 17 00:00:00 2001 From: rahulkaukuntla <144174402+rahulkaukuntla@users.noreply.github.com> Date: Thu, 11 Apr 2024 09:41:05 +0200 Subject: [PATCH] Update src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java Co-authored-by: Nikita Tkachenko <121111529+nikita-tkachenko-datadog@users.noreply.github.com> --- .../jenkins/plugins/datadog/listeners/DatadogBuildListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java b/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java index caa30479..ff8b16b7 100644 --- a/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java +++ b/src/main/java/org/datadog/jenkins/plugins/datadog/listeners/DatadogBuildListener.java @@ -212,7 +212,7 @@ public void onStarted(Run run, TaskListener listener) { queueInfoAction.setQueueTimeMillis(waitingMs); } } else { - // item.getInQueueSince() may raise a NPE if a worker node is spinning up to run the job. + // item may be null if a worker node is spinning up to run the job. // This could be expected behavior with ec2 spot instances/ecs containers, meaning no waiting // queue times if the plugin is spinning up an instance/container for one/first job. logger.warning("Unable to get queue waiting time. " +