mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
Name should never be null, but just in case
This commit is contained in:
1 parent
11ac075d73
commit
2020bbd513
1 file changed
+1
-1
@@ -213,7 +213,7 @@ public class Nodes implements Saveable {
|
||||
*/
|
||||
@CheckForNull
|
||||
public Node getNode(String name) {
|
||||
return nodes.get(name);
|
||||
return name == null ? null : nodes.get(name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user