Fix exception in progress dashboard if there are no progress in the project yet

FEA: ItEr76S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-07-10 08:30:43 +02:00
parent a501d5307d
commit af2fb68516

View file

@ -134,6 +134,9 @@ public class OrderEarnedValueCalculator extends EarnedValueCalculator implements
private BigDecimal getValueAt(SortedMap<LocalDate, BigDecimal> map,
LocalDate date) {
if (map.isEmpty()) {
return BigDecimal.ZERO;
}
BigDecimal result = map.get(date);
if (result != null) {
return result;