[Bug #1196] Assign task to the first valid queue in case that all of them are empty.

Until now, the task wasn't assigned to any queue when they were all empty,
causing this bug.

FEA: ItEr75S04BugFixing
This commit is contained in:
Jacobo Aragunde Pérez 2011-10-11 10:53:46 +02:00
parent 502ca4c612
commit c8d1725a1b

View file

@ -729,6 +729,9 @@ public class LimitingResourceQueueModel implements ILimitingResourceQueueModel {
}
}
}
if(result == null && !potentiallyValidQueues.isEmpty()) {
result = potentiallyValidQueues.get(0);
}
return result;
}