diff --git a/core/src/main/java/hudson/model/Queue.java b/core/src/main/java/hudson/model/Queue.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/hudson/model/Queue.java
+++ b/core/src/main/java/hudson/model/Queue.java
@@ -1375,7 +1375,7 @@ public class Queue extends ResourceController implements Saveable {
             if (label != null) {
                 if (label.isOffline()) {
                     Set<Node> nodes = label.getNodes();
-                    if (nodes.size() > 1)       return new BecauseLabelIsOffline(label);
+                    if (nodes.size() != 1)      return new BecauseLabelIsOffline(label);
                     else                        return new BecauseNodeIsOffline(nodes.iterator().next());
                 }
             }
@@ -1384,7 +1384,7 @@ public class Queue extends ResourceController implements Saveable {
                 return CauseOfBlockage.fromMessage(Messages._Queue_WaitingForNextAvailableExecutor());
 
             Set<Node> nodes = label.getNodes();
-            if (nodes.size() > 1)       return new BecauseLabelIsBusy(label);
+            if (nodes.size() != 1)      return new BecauseLabelIsBusy(label);
             else                        return new BecauseNodeIsBusy(nodes.iterator().next());
         }
[FIXED HUDSON-<I>] r<I> introduced a little bug in that a label with no nodes
generates an exception when trying to get the cause of blockage (calls next() on
empty iterator)


git-svn-id: <URL>