From 0be5dc1098bd0c67cbba8fb00efe367a5ca4bafe Mon Sep 17 00:00:00 2001 From: Jesse Glick Date: Tue, 31 Jan 2023 17:28:24 -0500 Subject: [PATCH] Avoid NPE when `Computer.getNode` returns null --- src/main/java/com/cloudbees/jenkins/support/SupportPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/cloudbees/jenkins/support/SupportPlugin.java b/src/main/java/com/cloudbees/jenkins/support/SupportPlugin.java index 9f6d53cc4..77d1cd617 100644 --- a/src/main/java/com/cloudbees/jenkins/support/SupportPlugin.java +++ b/src/main/java/com/cloudbees/jenkins/support/SupportPlugin.java @@ -808,7 +808,7 @@ public static class ComputerListenerImpl extends ComputerListener { @Override public void onOnline(Computer c, TaskListener listener) throws IOException, InterruptedException { final Node node = c.getNode(); - if (node instanceof Jenkins) { + if (node == null || node instanceof Jenkins) { return; } try {