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:
kohsuke committed 2008-11-17 19:17:10 +00:00
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;
}