From 6326d55a20833b24dac165a203909fb0f96f3503 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Fri, 27 Dec 2024 14:09:17 -0800 Subject: [PATCH] add mt string check --- core/src/main/java/jenkins/model/Jenkins.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/jenkins/model/Jenkins.java b/core/src/main/java/jenkins/model/Jenkins.java index 66adc45f82e8..0ceb2fe4a184 100644 --- a/core/src/main/java/jenkins/model/Jenkins.java +++ b/core/src/main/java/jenkins/model/Jenkins.java @@ -3017,7 +3017,7 @@ public void setNumExecutors(/* @javax.annotation.Nonnegative*/ int n) throws IOE */ public Item getItem(String pathName, ItemGroup context) { if (context == null) context = this; - if (pathName == null) return null; + if (Util.fixEmpty(pathName) == null) return null; if (pathName.startsWith("/")) // absolute return getItemByFullName(pathName);