ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #526] Fix bug.

Check for null.
This commit is contained in:
Óscar González Fernández 2010-06-15 23:34:27 +02:00
parent 096ac8e338
commit 75da2dbba0

View file

@ -358,6 +358,10 @@ public class ResourceLoadModel implements IResourceLoadModel {
pageFilterPosition, getEndPositionForCriterionPageFilter());
}
for(Criterion criterion : criteriaList) {
if (genericAllocationsByCriterion.get(criterion) == null) {
// no allocations found for criterion
continue;
}
List<GenericResourceAllocation> allocations = ResourceAllocation
.sortedByStartDate(genericAllocationsByCriterion
.get(criterion));