mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
fixed NPE
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@13283 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
86d5b5e691
commit
bab74dcf27
1 file changed
+1
@@ -36,6 +36,7 @@ public class Label implements Comparable<Label>, ModelObject {
|
||||
* which means the label is the name of a {@link Node}.
|
||||
*/
|
||||
public boolean isSelfLabel() {
|
||||
Set<Node> nodes = getNodes();
|
||||
return nodes.size() == 1 && nodes.iterator().next().getSelfLabel() == this;
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user